Skip to content

Abridged setup guide

Mike Hoffert edited this page Mar 25, 2015 · 7 revisions
  1. Install Scala 2.11.5+.
  2. Install PostgreSQL 9.3+.
  3. Provide database credentials in conf/application.conf. Both the default and test database must be set, but the test database can be given the same credentials if you don't plan to run the tests. This should be (but doesn't have to be) an empty database.
  4. Place the database/eatsafe_synonyms.syn file in the /usr/share/postgresql/9.3/tsearch_data folder, where "9.3" is your PostgreSQL version.
  5. With the database folder as the working directory, connect to the database and run the following scripts in order:
    1. CreateTables.sql
    2. statements.sql
    3. RestoreCoordinates.sql
    4. CreateSearchTable.sql
  6. Run ./activator ~run in the root directory.

To run in production mode on a server, edit the port in startServer.sh to use port 80, then run sudo ./startServer.sh (or just use the default port, which is 8080).

Clone this wiki locally