Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ backend/uploads/
backend/exports/
backend/dist

# Prisma generated files
backend/src/prisma/build/**/*.ts

# Autres fichiers à ignorer
.DS_Store
*.log
*.env
google_credentials.json


# Ignorer les clés NGINX pour simuler la prod
integration.utt.fr-key.pem
integration.utt.fr.pem
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Ce projet est une plateforme pour le site d'intégration de l'Université de Tec
- **Backend** :
- Node.js
- Express.js
- Drizzle ORM
- Prisma ORM
- PostgreSQL client
- Docker

Expand Down Expand Up @@ -57,7 +57,7 @@ docker-compose up --build

Cette commande :
- Lance PostgreSQL
- Démarre le backend avec migration automatique via Drizzle ORM
- Démarre le backend avec synchronisation du schéma Prisma et seed automatique
- Compile et sert le frontend

### 4. Accéder aux services
Expand All @@ -68,16 +68,18 @@ Cette commande :

---

## 🧪 Gestion des migrations
## 🧪 Gestion du schéma et des seeds

Le backend utilise **Drizzle ORM** pour la gestion des migrations.
Le backend utilise **Prisma ORM** pour synchroniser le schéma et injecter les données de base.

La commande suivante est exécutée automatiquement au démarrage :

```bash
npm run migrate
```

Elle exécute `prisma generate`, `prisma db push`, puis `prisma db seed`.

---

## 📁 Structure du projet
Expand Down
10 changes: 10 additions & 0 deletions backend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 4,
"arrowParens": "always",
"endOfLine": "lf",
"bracketSameLine": true
}
Loading