- Python 3.x
- MySQL database
- docker & docker-compose
Located under the yaml file.
- SQLALCHEMY_DATABASE_URI MySQL db connection url
the config value can be set through environment variable SQLALCHEMY_DATABASE_URI.
Go to app folder.
Install requirements:
pip install -r requirements.txt
you can run flask migration to create table
flask db init
flask db migrate
flask db upgrade
or run the db/init-scripts/ddl.sql to create table
Run application
python app.py
or override with environment variable
SQLALCHEMY_DATABASE_URI=xxx python app.py
Run:
docker-compose up --build
Import the postman collection in docs folder to test and verify.