Simple Blog APIs based on FastAPI and SqlAlchemy.
- Create a virtualenv
virtualenv venv -p python3.10 - install requirements
pip install -r requirements.txt
A Makefile provides a set of commands to work with the project
make run: Start the project in development modemake schema_migration: Generate database migrations. Do not forget to rename the migration with an explicit namemake schema_migrate: Apply the migrations on the databasemake test: Launch the test suitmake init-pyinstaller: Init pyinstaller and create anapi.specfilemake build-executable: Build an executable, to be used in AWS Lamda.make clean: clean the work directory
SnapshotTest is used for testing, to generate snapshots
pytest --snapshot-update