├── config
├── migrations
│ └── versions
├── src
│ ├── entrypoints
│ ├── models
│ ├── routes
│ └── services
│ └── repositories
└── tests
This folder is responsible to save configuration files like project constants or environment variables .
├── config
│ ├── conts.py
│ └── envs.py
Alembic's migrations directory.
├── migrations
│ ├── README
│ ├── env.py
│ ├── script.py.mako
│ └── versions
│ └── 3034f17c14fe_.py
Project source code.
├── src
│ ├── entrypoints
│ ├── models
│ ├── routes
│ └── services
│ └── repositories
This directory is to split possible entrypoints to your application; i.e. http, cli, etc.
Save sqlalchemy models.
FastAPI routes and dependencies, also you can add directories for versioning your API.
Save files for handle interaction between routes and repositories.
Save repositories that interact with models and the database.
Base code tests.
└── tests
└── conftest.py