Présentation — ProbatioVault Backend (NestJS)¶
API backend avec authentification SRP-6a, TypeORM/PostgreSQL, Redis
Stack technique¶
| Composant | Technologie |
|---|---|
| Framework | NestJS 10 |
| ORM | TypeORM |
| Database | PostgreSQL 18 |
| Cache | Redis 7 |
| Auth | SRP-6a + JWT |
Documentation¶
Architecture¶
src/
├── modules/ # Modules NestJS
│ ├── auth/ # Authentification SRP-6a
│ ├── crypto/ # Services cryptographiques
│ ├── documents/ # Gestion documents
│ └── storage/ # Stockage S3
├── database/ # TypeORM config & migrations
├── common/ # Guards, filters, decorators
└── config/ # Configuration
Modules principaux¶
| Module | Description |
|---|---|
auth | Authentification SRP-6a + JWT |
crypto | HSM, key wrapping, hash SHA3 |
documents | CRUD documents chiffrés |
storage | Upload/download S3 |
audit | Logging conformité |
Migrations¶
# Générer une migration
npm run migration:generate -- src/database/migrations/NomMigration
# Exécuter les migrations
npm run migration:run
# Rollback
npm run migration:revert