Note: To test the current APIs go to dev branch
The docker-compose.yml
has two services defined:
database
has a single environment configured at config/database.env
.app
service has two environments configured at config/app.env
and config/app.env.local
.
Here, "local" means when you want to run the flask app directly from the command line, without using docker.In order to generate the SECRET_KEY
environment variable for config/app.env
and config/app.local.env
, you must generate a random hexadecimal string with 100 characters.
openssl rand -hex 100
For a database password, set the POSTGRES_PASSWORD
in config/database.env
by using a random string with 15 characters.
openssl rand -base64 15
docker-compose up -d
# or for local development
./scripts/start.sh
By running this command in your local machine the app would not be connected to the database unless the database is active in docker. Activate