FIXME: description
When you first clone this repository, run:
lein setup
This will create files for local configuration, and prep your system for the project.
Install postgres On osx
brew install postgresql
Then, create init caldb
psql -f db/init_db.sql
Run flyway
./db/flyway-3.2.1/flyway -configFile=db/flyway-3.2.1/conf/flyway.conf migrate
To begin developing, start with a REPL.
lein repl
Run go
to initiate and start the system.
user=> (go)
:started
By default this creates a web server at http://localhost:3000.
When you make changes to your source files, use reset
to reload any
modified files and reset the server.
user=> (reset)
:reloading (...)
:resumed
Testing is fastest through the REPL, as you avoid environment startup time.
user=> (test)
...
But you can also run tests through Leiningen.
lein test
a cool way to see if a command is installed.
command -v convert >/dev/null 2>&1 || { echo "ImageMagick is a required dependency, aborting..." >&2; exit 1; }
This project has several generators to help you create files.
lein gen endpoint <name>
to create a new endpointlein gen component <name>
to create a new component
The database should only have to be set up once per environment.
Create a postgres RDS instance for the environment using one of the rds-create-instance jenkins jobs. https://ewe.deploy.sb.karmalab.net:8443/job/ewetest_rds-create-instance/
Run the init_db script on the db.
psql -h caldb.cmguqnu4wehw.us-west-2.rds.amazonaws.com -U cal -d caldb -f db/init_db.sql
Run flyway migrate:
./db/flyway-3.2.1/flyway -url=jdbc:postgresql://caldb.cmguqnu4wehw.us-west-2.rds.amazonaws.com:5432/caldb -user=caldba -password=333BlackTower migrate
FIXME: steps to deploy
Copyright © 2015 FIXME