-
Notifications
You must be signed in to change notification settings - Fork 4
Setting up a local environment
Steps to create a local environment
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
https://developer.android.com/studio/index.html
brew install postgres
https://www.rabbitmq.com/install-homebrew.html
brew install rabbitmq
set PATH variable for rabbitmq-server.
git clone https://github.com/csync/csync-server
make update
brew services start postgres
brew services start rabbitmq
createdb
sbt test
When you run sbt test, all the updates go to a separate namespace in the PSQL database.
Each user - through the Play configuration setup - accesses a DB of their own name.
Within this DB, sbt test
uses a namespace (aka schema) called testing.
To see the test data in the psql repl, fire up sql and issue the command
set search_path to testing;
Now you can use all the usual psql commands to examine the data. E.g. "\dt" will show the tabels within this schema
A note of warning: Since our table names are the same for test and production, you have to switch your search_path back if you want to look at the production tables. Those are in the default postgres schema called "public"