This is a FastAPI template. If you identify anything that requires optimization, kindly submit a pull request (PR) or open an issue. The example app is provided for reference purposes only, feel free to remove it once you start using the template.
You can configure various environment settings in the configs.py
file.
Following TDD, add tests in the unittests
directory to validate the expected outcomes.
- Add the models in
models.__init__.py
. - Add the schemas for validating API data in
example.schemas
- Add API routes in
example.api
- Add exceptions in
example.exceptions
- Add common business logic in
example.services
Start dependencies:
cd docker
docker-compose up -d
Run server:
cd src
poetry install
python manage.py migrate
python manage.py start