This repository was archived by the owner on Dec 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Build and Install
eller86 edited this page Apr 24, 2013
·
7 revisions
We distribute cookbooks and Vagrantfile to make development environment, so you can use VirtualBox and Vagrant 1.1 to set up your development environment.
Note that we do not support Windows as host machine. see #442.
- Clone master branch from GitHub.
- Just execute
git clone git@github.com:partakein/partake.git. - Execute
git submodule initandgit submodule updateto update third party libraries.
- Just execute
- Set up your VM. It would cost several minutes to download and install middle ware.
- Execute
vagrant upcommand. - VM uses memory about 2 GiB. If you want to reduce it, see Vagrantfile for detail.
- Chef-solo will install JDK, Play! framework, Postgres and initialize databases.
- Execute
- Register your application to twitter, and set token to conf/application.conf.
- Application Type should be "Browser"
- Callback URL is any valid URL. But do not use localhost. This will rejected by twitter.
- Default Access Type should be "Read & Write". We do not need DirectMessage Read.
- Check "Yes, use Twitter for login"
- Build and run PARTAKE in your VM.
- Sign in to your VM by
vagrant sshcommand. - You need to execute
cd /vagrant && ~/play-2.0.4/play runin your VM. - After that, please access to http://localhost:9000/. You can use host machine to access because your localhost:9000 is forwarded to VM's 9000 port.
- Sign in to your VM by
- Install PostgreSQL version 9, and make 2 databases in it.
- Default database name is
partake-dev. You can change it by modifying conf/application.conf. - Unit test uses
partake-testdatabase, so you need to make this database too.
- Default database name is
- Download Play! framework.
- To know which version we are using, please read project/plugins.sbt.
- We recommend you to use Java7 to develop.
- Register your application to twitter, and set token to conf/application.conf.
- Application Type should be "Browser"
- Callback URL is any valid URL. But do not use localhost. This will rejected by twitter.
- Default Access Type should be "Read & Write". We do not need DirectMessage Read.
- Check "Yes, use Twitter for login"
- Clone master branch from GitHub.
- Just execute
git clone git@github.com:partakein/partake.git - Execute
git submodule initandgit submodule updateto update third party libraries.
- Just execute
- Execute
play runto build and run service on your PC. After that, access to http://localhost:9000/ to use your service.
- Execute
play eclipsifyto generate project files. - Launch your Eclipse and go to
File -> Import... -> Existing Projects into Workspace. - Choose folder which you cloned PARTAKE into. Eclipse will load generated project files.
- Execute
play test.