chore: migrate from PostgreSQL to MongoDB and update environment configuration
This commit is contained in:
@@ -5,6 +5,25 @@ icona di una presa della spina idk
|
||||
## Architettura
|
||||
|
||||
```
|
||||
FastAPI + PostgreSQL + Redis
|
||||
FastAPI + MongoDB + Redis
|
||||
```
|
||||
|
||||
### Setup Dev
|
||||
|
||||
imposta le variabili d'ambiente
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
# modifica le variabili
|
||||
nano .env
|
||||
```
|
||||
|
||||
avvia i servizi e il server locale
|
||||
```bash
|
||||
docker compose up -d mongodb redis
|
||||
```
|
||||
```bash
|
||||
fastapi dev src/main.py
|
||||
```
|
||||
|
||||
FastAPI docs: `http://localhost:3671/docs`
|
||||
|
||||
Reference in New Issue
Block a user