- 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.txtyou can run flask migration to create table
flask db init
flask db migrate
flask db upgradeor run the db/init-scripts/ddl.sql to create table
Run application
python app.pyor override with environment variable
SQLALCHEMY_DATABASE_URI=xxx python app.pyRun:
docker-compose up --buildImport the postman collection in docs folder to test and verify.