Using flask to create a minimal application of an API and SQLAlchemy as ORM for a SQLite database.
The python dependency management tool used is poetry. If you never used it you might want to enable the virtual environment inside the project folder.
poetry config virtualenvs.in-project true
Then you can just install the depedencies and enable the virtual environment.
poetry install
poetry shell
flask db init
flask db migrate
flask db upgrade
python3 run.py
You can just skip the steps above and test the application using docker compose. Just run these two commands below and you can send HTTP Requests to port 4444 on localhost, by default.
docker compose up