Skip to content

Modif93/fastapi-sqlmodel-template

Repository files navigation

FastAPI + SQLModel Layered Architecture Example


Based on FastAPI and SQLModel

It has Spring-Like Layered Architecture Structure

FastAPI's default Depends() is used for Dependency Injection.

using ColorLog for timestamped log


using dotenv as configuration

DATASOURCE__DIALECT=sqlite
DATASOURCE__DRIVER=
DATASOURCE__USERNAME=
DATASOURCE__PASSWORD=
DATASOURCE__HOST=
DATASOURCE__PORT=
DATASOURCE__DATABASE=./webapp.db

SERVER__HOST=0.0.0.0
SERVER__PORT=8000

SECURITY__TOKENIZE__ALGORITHM=
SECURITY__TOKENIZE__SECRET_KEY=
SECURITY__TOKENIZE__REFRESH_SECRET_KEY=
SECURITY__TOKENIZE__EXPIRE_MIN=
SECURITY__TOKENIZE__REFRESH_HOURS=

set those parameters to set configuration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published