Setting up a Development Environment

Writtien by Jay Heejae Park


Download Typesafe IDE for Scala 2.10.1 at
which is a full packaged version (includes eclipse and scala IDE)


to install SCALATEST


Install Play framework
after downloading, move it to a location where you can access.

In Linux command;
export PATH=/(directories)/play:$PATH

ex) export PATH=$HOME/play:$PATH
(you could permanently add this command by,
going into home/user/.bashrc and adding

echo "play activated"
export PATH=$HOME/play:$PATH

at the end of the file.

Work through the Play tutorial


Install postgres database
in linux command, 'apt-get install postgresql' (might need to add sudo infront of the command to gain access)

To set up a server,

(By default in Ubuntu, Postgresql is configured to use 'ident sameuser' authentication for any connections from the same machine. In here, $USER should be your Ubuntu(linux) username eg. $USER = hj7park)

these are the commands that need to be ran

sudo -u postgres createuser --superuser $USER
sudo -u postgres psql

postgres=# \password $USER

To create a new database,

createdb $USER


Install postgres database
in linux command, 'apt-get install pgadmin3' (might need to add sudo infront of the command to gain access)


create an account at GITHUB

and download git-gui client from (according to your platform)

To Connect:

  1. Assumming that all of the above steps are done,
  2. Set up the local .pg_service.conf file to be something like this.
  3. To generate the test database for the Oat, run the command below and configure.
    1. run psql service=yourdatabasename < load.sql in the oat_testdb/02_core folder.
    2. run psql service=yourdatabasename < init.sql in the oat_sql folder.
  4. Run command play from the oat folder and wait until it loads.

  5. Finally run ~run in the play framework and then localhost:9000 should be set to your project.
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2013-06-05 - HeejaePark
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback