Michael Herman c31596637b init
2021-09-08 18:28:28 -05:00
2021-09-08 18:28:28 -05:00
2021-09-08 18:28:28 -05:00
2021-09-08 18:28:28 -05:00
2021-09-08 18:28:28 -05:00
2021-09-08 18:28:28 -05:00

FastAPI + SQLModel + Alembic

Sample FastAPI project that uses async SQLAlchemy, SQLModel, Postgres, Alembic, and Docker.

Getting Started

$ docker-compose up -d --build
$ docker-compose exec web alembic upgrade head

Sanity check: http://localhost:8004/ping

Add a song:

$ curl -d '{"name":"Midnight Fit", "artist":"Mogwai", "year":"2021"}' -H "Content-Type: application/json" -X POST http://localhost:8004/songs

Get all songs: http://localhost:8004/songs

Description
Sample FastAPI project that uses async SQLAlchemy, SQLModel, Postgres, Alembic, and Docker.
Readme MIT 521 KiB
Languages
Python 89%
Mako 6%
Dockerfile 5%