Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 487 Bytes

File metadata and controls

29 lines (23 loc) · 487 Bytes

Example integration of Peewee and FastAPI.

Setup project

  • Use pipenv to create virtualenv:
    pipenv --python 3.12
    pipenv shell
    pipenv install --dev
  • Init database:
    make init

(Optional) Migrations

  • Run migrations:
    make migrate-forwards

Run app

Turn on pipenv shell and run:

make run

Navigate to http://127.0.0.1:8000/docs#/ to check API endpoints definitions.