...
- 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 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
devDEV machines:
takesCode Block language bash title 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 and unzip scp isda:/home/shared/clowder/seagrant-dev/postgresql/dumpall.sql.gz seagrant-dev.sql.gz gunzip seagrant-dev.sql.gz # split the database (
(may take a while) ./pg_extract.sh seagrant-dev.sql # should see names of databases: # Evaluating geostream... # create and load database ##
)In the line below, 'clowder' can be updated for your username on your machine
#
in the next line as well and see step 8.a to update the configuration file## 'geostream' will be the name of the database. ## It can be the name that you prefer, just use the same name
throughout these instructions ## Note: This may not work as expected ## - you may have to manually copy the contents of 'geostream' to your chosen database name createdb geostream -O clowder
psql -d geostream < seagrant-dev.sql
- Start your postgres db
- In your geostreams-api-v2 directory you need to create a file
conf/application.conf
(- This file will be where you can override the configuration file in
conf/reference.conf
- Copy the entirety of
conf/reference
.conf
toconf/application.conf
ensure proper functionality- Update the
play.filters.host
inconf/application.conf
to contain the proper allowed host for Geodashboard - If you change the name of the database (i.e.: Instead of
geostreams
in the last 2 instructions you you use something likeseagrant-dev
) in yourconf/application.conf
you you need to add:db.default.url="jdbc:postgresql://localhost/seagrant-dev"
- This file will be where you can override the configuration file in
In a terminal,
Cd tocd
to thegeo-temporal-api-v2
repository and execute
'sbt run'sbt run
to start Clowder