Step 2 migration: add PostgreSQL schema and read endpoints
This commit is contained in:
11
README.md
11
README.md
@@ -23,6 +23,7 @@ Centraliser ta collection dans une interface rapide a utiliser, evolutive, et fa
|
||||
- Suppression d'un jeu
|
||||
- Statut de pret (marquer prete/rendu)
|
||||
- Persistance locale via `localStorage`
|
||||
- Backend avec migration automatique du schema PostgreSQL (etape 2)
|
||||
|
||||
## Stack technique
|
||||
|
||||
@@ -84,6 +85,8 @@ docker compose up -d --build
|
||||
### 3-bis) Verifier l'API (etape 1 migration)
|
||||
|
||||
- [http://localhost:7002/health](http://localhost:7002/health)
|
||||
- [http://localhost:7002/api/catalog/summary](http://localhost:7002/api/catalog/summary)
|
||||
- [http://localhost:7002/api/catalog/tree](http://localhost:7002/api/catalog/tree)
|
||||
|
||||
### 4) Arreter
|
||||
|
||||
@@ -118,6 +121,14 @@ git pull
|
||||
- Export/import (CSV/JSON)
|
||||
- Sauvegarde distante (API/backend)
|
||||
|
||||
## Etat migration base de donnees
|
||||
|
||||
- Etape 1: architecture `app + api + db` en place
|
||||
- Etape 2: schema SQL applique automatiquement au demarrage API
|
||||
- tables: `brands`, `consoles`, `games`
|
||||
- trigger `updated_at` sur `games`
|
||||
- endpoints de lecture pour validation: `summary` et `tree`
|
||||
|
||||
## Licence
|
||||
|
||||
Projet prive personnel.
|
||||
|
||||
Reference in New Issue
Block a user