- Python 3.5
- NPM 6.1.0
- Docker
- Pip install the dev requirements:
pip install -r dev_reqs.txt
- Use Fabric to initialize the virtual env:
fab init_dev
- Install npm packages:
fab npm_install
- Create Postgres database in a container:
fab create_postgres
- Build the UI:
fab build_ui
Initial data load:
fab update_data
To run locally:
- Start the front-end dev environment:
fab ui
- Start the back end from the virtual environment (activate it) then
python run.py
Access the web server at localhost:8080
The deployment process targets a Ubuntu 16 server with ssh access.
First setup the remote from your local environment:
fab -h <host> setup
Then the first and all subsequent deploys are done with:
fab -h <host> deploy