An open API service indexing awesome lists of open source software.

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

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)