You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* You want a pragmatic starter with auth, CRUD, jobs, caching and rate-limits.
49
-
* You value **sensible defaults** with the freedom to opt-out of modules.
50
-
* You prefer **docs over boilerplate** in README - depth lives in the site.
46
+
**Perfect if you want:**
51
47
52
-
Not a fit if you need a monorepo microservices scaffold - see the docs for pointers.
48
+
* A pragmatic starter with auth, CRUD, jobs, caching and rate-limits
49
+
***Sensible defaults** with the freedom to opt-out of modules
50
+
***Docs over boilerplate** in README - depth lives in the site
53
51
54
-
## What's inside (high-level)
52
+
> **Not a fit** if you need a monorepo microservices scaffold - [see the docs](https://benavlabs.github.io/FastAPI-boilerplate/user-guide/project-structure/) for pointers.
***Admin**: CRUDAdmin views for common models (optional)
54
+
**What you get:**
64
55
65
-
> The full tree and deep dives are in **Project Structure**, **Database**, **CRUD Operations**, **API**, **Caching**, **Background Tasks**, **Rate Limiting**, and **Production** sections of the docs.
***Admin**: [CRUDAdmin views](https://benavlabs.github.io/FastAPI-boilerplate/user-guide/admin-panel/) for common models (optional)
64
+
65
+
This is what we've been using in production apps. Several applications running in production started from this boilerplate as their foundation - from SaaS platforms to internal tools. It's proven, stable technology that works together reliably. Use this as the foundation for whatever you want to build on top.
66
+
67
+
> **Building an AI SaaS?** Skip even more setup with [**FastroAI**](https://fastro.ai) - our production-ready template with AI integration, payments, and frontend included.
66
68
67
69
## TL;DR - Quickstart
68
70
@@ -77,15 +79,15 @@ The `scripts/` folder contains ready-to-use configurations for different deploym
77
79
78
80
### Option 1: Local development with Uvicorn
79
81
80
-
Best for: **Development and testing**
82
+
Best for: **Development and testing**. Simply run:
🚨 **CRITICAL**: You MUST change `SECRET_KEY`, all passwords, and sensitive values in the `.env` file before deploying!
127
+
> [!CAUTION]
128
+
> You MUST change `SECRET_KEY`, all passwords, and sensitive values in the `.env` file before deploying!
129
+
130
+
And then, to sart:
123
131
124
132
```bash
125
133
docker compose up
126
134
```
127
135
128
136
Access your application via http://localhost (NGINX proxies to the FastAPI app).
129
137
130
-
> Full setup (from-scratch, .env examples, PostgreSQL & Redis, gunicorn, nginx) lives in the docs.
138
+
> Full setup (from-scratch, .env examples, PostgreSQL & Redis, gunicorn, nginx) lives in the [docs](https://benavlabs.github.io/FastAPI-boilerplate/getting-started/installation/).
131
139
132
140
## Configuration (minimal)
133
141
134
-
Create `src/.env` and set **app**, **database**, **JWT**, and **environment** settings. See the docs for a copy-pasteable example and production guidance.
142
+
Create `src/.env` and set **app**, **database**, **JWT**, and **environment** settings. See the [docs](https://benavlabs.github.io/FastAPI-boilerplate/getting-started/configuration/) for a copy-pasteable example and production guidance.
More examples (superuser creation, tiers, rate limits, admin usage) in the [docs](https://benavlabs.github.io/FastAPI-boilerplate/getting-started/first-run/).
0 commit comments