update db str

This commit is contained in:
2026-03-05 12:43:44 +05:30
parent eabf295f2e
commit 6e184dc590
27 changed files with 2780 additions and 146 deletions

View File

@@ -5,6 +5,12 @@ FastAPI backend for Grateful Journal - a private-first gratitude journaling app.
**Port:** 8001
**API Docs:** http://localhost:8001/docs
## 📚 Documentation
- **[REFACTORING_SUMMARY.md](./REFACTORING_SUMMARY.md)** — Overview of database schema refactoring
- **[SCHEMA.md](./SCHEMA.md)** — Complete MongoDB schema reference with examples
- **[MIGRATION_GUIDE.md](./MIGRATION_GUIDE.md)** — Step-by-step migration instructions
## Quick Start
### 1. Prerequisites
@@ -47,7 +53,7 @@ FRONTEND_URL=http://localhost:8000
- **`main.py`** — FastAPI app, CORS, route registration, lifespan events
- **`config.py`** — Settings management (environment variables)
- **`db.py`** — MongoDB connection (singleton pattern)
- **`models.py`** — Pydantic data models
- **`models.py`** — Pydantic data models (ObjectId support, encryption metadata)
- **`routers/`** — API endpoints
- `users.py` — User registration, profile updates, deletion
- `entries.py` — Journal entry CRUD, date filtering