Auth- OrderBy
Migrations- Async
PaginationCORS- Logging (Uvicorn and Python)
- Frontend (templates)
- Use gunicorn as a process manager
python -V # 3.11.2
pipenv install --dev
pytest tests
Settings are configured through environment variables, see settings.py.
With environment variables set, launch the app or migrate the database like so:
./run.py app launch # launch the app
./run.py db update # migrate the db to the latest revision
./run.py --help # see all commands
http://localhost:8000/docs/
The database uri is configured in alembic/env.py (see database.engine
and settings.SQLALCHEMY_DATABASE_URI
).
Then, the migrations are auto generated from the SqlAlchemy models. After making a change to the models, apply the change to the database like so:
./run.py db create-migration # create a new migration revision
./run.py db update # migrate the database to the latest revision