Quickstart:
Labs:
https://github.com/Dizzzmas/DB_course_labs/tree/lab1
Lab1:https://github.com/Dizzzmas/DB_course_labs/tree/lab2
Lab2:Prerequisites:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python # poetry
Useful Commands:
Python Virtual Environment:
poetry shell # activate python virtual environment
poetry install # install dependencies
Run Dev Server:
flask # CLI commands
make idb # Setup and seed database
make run # run flask dev server
Database:
Using Postgresql.
createdb db_labs # create DB
flask db upgrade # run migrations
flask seed # populate with sample data
flask db migrate # generate new migration
flask db # more migration commands
API Documentation:
Once your flask dev server is running: