https://github.com/everysoftware/fastapi-template
FastAPI application template with PostgreSQL and Redis built with best practices ✨
https://github.com/everysoftware/fastapi-template
fastapi fastapi-template jwt postgresql redis redis-cache sqlalchemy template
Last synced: 12 months ago
JSON representation
FastAPI application template with PostgreSQL and Redis built with best practices ✨
- Host: GitHub
- URL: https://github.com/everysoftware/fastapi-template
- Owner: everysoftware
- License: mit
- Created: 2024-09-25T22:07:47.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-13T14:55:59.000Z (over 1 year ago)
- Last Synced: 2025-02-19T12:52:10.537Z (about 1 year ago)
- Topics: fastapi, fastapi-template, jwt, postgresql, redis, redis-cache, sqlalchemy, template
- Language: Python
- Homepage:
- Size: 334 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# FastAPI Template
Production-ready FastAPI template with PostgreSQL, Redis & JWT authorization.
## Features
- Secure and usable **JWT authorization** (feat. Refresh Tokens)
- Confirm actions using an email **one-time code**
- Extendable **role-based access control** (supports user & superuser)
- Powerful **user** management: CRUD, search, etc.
- **Admin panel** with authorization & CRUD operations
- **Docker**, **Pre-commit** & **CI** for better development experience
- Built with **[FastAPI best practices](https://github.com/zhanymkanov/fastapi-best-practices)**
and **[Tips](https://github.com/Kludex/fastapi-tips)**
## Installation
1. Clone the repository:
```bash
git clone https://github.com/everysoftware/fastapi-template
```
2. Generate RSA keys:
```bash
openssl genrsa -out certs/private.pem 2048
openssl rsa -in certs/private.pem -pubout -out certs/public.pem
```
3. Create a `.env` file. Use the `.env.example` as a reference.
4. Run the application:
```bash
make up
```
## Screenshots


**Made with love ❤️**