https://github.com/daxartio/python-server-template
FastAPI template
https://github.com/daxartio/python-server-template
clean-architecture fastapi fastapi-template python template
Last synced: 8 months ago
JSON representation
FastAPI template
- Host: GitHub
- URL: https://github.com/daxartio/python-server-template
- Owner: daxartio
- License: mit
- Created: 2023-01-01T19:32:57.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-24T11:11:13.000Z (10 months ago)
- Last Synced: 2024-12-31T15:51:27.309Z (9 months ago)
- Topics: clean-architecture, fastapi, fastapi-template, python, template
- Language: Python
- Homepage:
- Size: 760 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Project Template
This is a Python-based web application that uses Docker for containerization, Alembic for database migrations, and Poetry for dependency management.
## Features
- FastAPI
- Sqlalchemy
- alembic
- Access token (RS256)
- Clean Architecture
- Json logging
- Packages: uv, ruff, mypy, poe, pytest## Structure
- `app` is where the main application code resides. It includes several modules such as adapters, `api`, `cli`, and `db`. The `settings.py` file contains configuration settings for the application, and `deps.py` manages project dependencies.
- `packages` is where the project dependencies are defined.## Quickstart
```
docker-compose build app
docker-compose run --rm app poe migrate
docker-compose run --rm app poe cli -- users create username email password
docker-compose up app
```## Contributing
[Contributing](CONTRIBUTING.md)