Example FastAPI with SQLModel by fouder itself, tiangolo, connected to PostgreSQL. As reference, this tutorial by Michael Herman about fastapi-sqlmodel and I made some tweaks from there.
git clone https://github.com/vnurhaqiqi/fastapi-sqlmodel-postgresql.git
source /your-env/bin/activate -> Linux
your-env\Scripts\activate.bat -> Windows
alembic upgrade head
uvicorn main:app --reload
Copyright © 2021 by Viqi Nurhaqiqi