|
2 | 2 | <img src="https://github.com/rafsaf/minimal-fastapi-postgres-template/workflows/tests/badge.svg" alt="Test">
|
3 | 3 | </a>
|
4 | 4 |
|
5 |
| -<a href="https://github.com/rafsaf/respo/blob/main/LICENSE" target="_blank"> |
6 |
| - <img src="https://img.shields.io/github/license/rafsaf/respo" alt="License"> |
| 5 | +<a href="https://github.com/rafsaf/minimal-fastapi-postgres-template/blob/main/LICENSE" target="_blank"> |
| 6 | + <img src="https://img.shields.io/github/license/rafsaf/minimal-fastapi-postgres-template" alt="License"> |
7 | 7 | </a>
|
8 | 8 |
|
| 9 | +:information_source: This repository contains two different templates to choose from. |
| 10 | + |
9 | 11 | ## Minimal async FastAPI + postgresql template
|
10 | 12 |
|
11 |
| - |
| 13 | + |
12 | 14 |
|
13 | 15 | - SQLAlchemy using new 2.0 API + async queries
|
14 | 16 | - Postgresql database under `asyncpg`
|
|
20 | 22 | - `pre-push.sh` script with poetry export, autoflake, black, isort and flake8
|
21 | 23 | - Setup for async tests, one func test for token flow and very extensible `conftest.py`
|
22 | 24 |
|
| 25 | +## Async FastAPI + postgresql template based on [fastapi-users](https://fastapi-users.github.io/fastapi-users/) |
| 26 | + |
| 27 | +- SQLAlchemy using new 2.0 API + async queries |
| 28 | +- Postgresql database under `asyncpg` |
| 29 | +- Alembic migrations |
| 30 | +- Very minimal project structure yet ready for quick start building new api |
| 31 | +- Refresh token endpoint (not only access like in official template) |
| 32 | +- Two databases in docker-compose.yml (second one for tests) |
| 33 | +- poetry |
| 34 | +- `pre-push.sh` script with poetry export, autoflake, black, isort and flake8 |
| 35 | +- Setup for async tests, one func test for token flow and very extensible `conftest.py` |
| 36 | + |
| 37 | + |
| 38 | + |
23 | 39 | ## What this repo is
|
24 | 40 |
|
25 | 41 | This is a minimal template for FastAPI backend + postgresql db as of 2021.11, `async` style for database sessions, endpoints and tests. It provides basic codebase that almost every application has, but nothing more.
|
|
0 commit comments