(Work in Progress)
- Install Java 1.8
- Install git
- Clone repository from: https://opensource.ncsa.illinois.edu/bitbucket/projects/GEOD/repos/geo-temporal-api-v2/browse (git clone repositoryUrl
- In Intellij Import project from external model, select sbt. Leave default options
- Install Scala and Play plugins on Intellij
- Download postgres from your operating system: https://www.postgresql.org/download/ or https://postgresapp.com/ (Mac)
- Clone a database from one of the dev machines:Ingest Database
# from https://gist.github.com/brock/63830f11c0945f82f9ea curl -o pg_extract.sh https://gist.githubusercontent.com/brock/63830f11c0945f82f9ea/raw/ff164b14311de62ee475d1612f1e80e4df6edc15/pg_extract.sh chmod 755 pg_extract.sh # get the database scp isda:/home/shared/clowder/seagrant-dev/postgresql/dumpall.sql.gz seagrant-dev.sql.gz gunzip seagrant-dev.sql.gz # split the database (takes a while) ./pg_extract.sh seagrant-dev.sql # should see names of databases: # Evaluating geostream... # load database (In the line below clowder can be updated for your username on your machine) createdb geostream -O clowder psql -d geostream < seagrant-dev.sql
- Clone a database from one of the dev machines:
- Start your postgres db
- In a terminal, Cd to the geo-temporal-api-v2 repository and execute 'sbt run'