Skip to content

Basic application with FastAPI, SQLModel and PostgreSQL

Notifications You must be signed in to change notification settings

yersonargote/fastapi-sqlmodel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI and SQLModel

SQLModel docs

Official github tutorials

Install dependencies

pipenv install

Run app

Note: Postgresql should be runnging. See the Postgresql section.

  • Option 1:
pipenv run uvicorn main:app --reload
  • Option 2:
pipenv shell

uvicorn main:app --reload

Postgresql

  • Option 1: recomended
docker-compose up -d
  • Option2:
docker run --name postgres -e POSTGRES_PASSWORD=postgres -d postgres

TODO

  • Modularize all app
  • Make async db
  • Make async endpoints

Docs used

SQLModel

  1. SQLModel Teams

Github

About

Basic application with FastAPI, SQLModel and PostgreSQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages