Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 925 Bytes

File metadata and controls

55 lines (39 loc) · 925 Bytes

🌱 API Fastify + Prisma + TypeScript

API backend construite avec :


base de donnée et outils:

  • PostgreSQL (via prisma)
  • Bucket storage (images)
  • redis (rate-limit + token-reset)

🚀 Commandes de développement

Démarrer l’API en mode dev (reload automatique)

npm run dev

Compiler TypeScript

npm run build

Démarrer l’API compilée (prod)

npm start

🛠 Commandes Prisma (via npm scripts)

Générer le client Prisma

npm run prisma:generate

Ouvrir Prisma Studio (interface admin web)

npm run prisma:studio

⚙️ Configuration .env (exemple)

Crée un fichier .env à la racine :

DATABASE_URL="postgresql://postgres:password@localhost:5432/nom_de_la_bdd"