Look to config.py
for a template of the configuration file. One needs to create a instance/config.py
which will have the dev or prod specific configurations. Examples of dev or prod configurations will be seen commented out in config.py
.
The following steps show how to run the Flask backend baremetal. To run this in Docker refer to ../docker-compose.yml
.
Create a virtualenv and activate it:
python3 -m venv venv
. venv/bin/activate
Set up Providentia requirements and environment variables
pip3 install -r requirements.txt
pip3 install python-dotenv
See ../providentia-db/docker-containers
for instructions on how to start the PostGIS docker container.
The analytics are stored in the providentia
database - details of which can be seen in the ./db
directory.
flask run --no-reload