BernarBerdikul / full_async_fastapi

Pet FastApi project with async SQLAlchemy DB Session

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FastAPI + SQLModel + Alembic

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

Want to learn how to build this?

Check out the post.

Want to use this project?

$ 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

About

Pet FastApi project with async SQLAlchemy DB Session

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 84.2%Language:Mako 7.8%Language:Dockerfile 6.8%Language:Shell 1.2%