ERP MetallKart - Backend Node.js TypeScript Fastify Prisma
|
|
||
|---|---|---|
| prisma | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
MetallKart ERP
Système ERP pour la gestion des stocks, clients et fournisseurs.
Stack technique
- Runtime : Node.js + TypeScript
- Framework : Fastify
- ORM : Prisma
- Base de données : PostgreSQL
- Validation : Zod
Installation
npm install
cp .env.example .env
# Modifier .env avec vos paramètres de connexion PostgreSQL
npx prisma generate
npx prisma migrate dev --name init
Développement
npm run dev
Le serveur démarre sur http://localhost:3000.
Scripts disponibles
| Commande | Description |
|---|---|
npm run dev |
Serveur de développement avec rechargement automatique |
npm run build |
Compilation TypeScript |
npm start |
Lancement en production |
npm run prisma:generate |
Génération du client Prisma |
npm run prisma:migrate |
Exécution des migrations |
npm run prisma:studio |
Interface web Prisma Studio |
API
GET /health— Vérification de l'état du serveur