Base project to work with the Python Flask framework in an easy way.
Create an .env
file in the root of the project with this information.
cp .env.docker.example .env
To deploy the software under development environment, run:
docker compose -f docker/docker-compose.dev.yml up -d
This will apply the migrations to the database and run the Flask application. Open http://localhost
to play with your fantastic app!
However, if during development there are new changes in the model, run inside the web_app_container
container:
flask db migrate
flask db upgrade
To run unit test, please enter inside web_app_container
container:
rosemary test
docker compose -f docker/docker-compose.prod.yml up -d