- Python 3
- Flask
Set the environment variables (following the env.example) or create a file named .env
with them in the project root folder.
On the terminal:
docker-compose up
Instantiate a new virtual environment with your favorite tool.
Install everything you need:
pip install -r requirements.txt
Before running the project you'll need to add these environment variables:
export FLASK_RUN_PORT=5000
export FLASK_APP=sample_api.app
If you want to run the project on debug mode also add this environment variable:
export FLASK_ENV=development
On the virtual environment, Finally start the project with either:
flask run
or
python sample_api/app.py
or
sh entrypoint-dev.sh
To run the tests simply run:
pytest