feat(api): app NestJS con configuración validada y health check
Nest 12 (ESM, vitest, oxlint). El .env se valida con zod al arrancar; prefijo global /api, CORS configurable y GET /api/health. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e4417705e7
commit
445efc998d
21 files changed
+6145
-1
No files matched your search
@@ -0,0 +1,15 @@
|
||||
# api
|
||||
|
||||
Backend NestJS (ESM) del ERP base. Proxy hacia SAP Business One Service Layer.
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
npm run start:dev # http://localhost:3000/api/health
|
||||
npm test # unitarios
|
||||
npm run test:e2e # e2e
|
||||
npm run lint
|
||||
```
|
||||
|
||||
Configuración: `src/config/env.schema.ts` valida el `.env` al arrancar (zod); si algo es inválido, el proceso no inicia.
|
||||
|
||||
Nota: instalar dependencias con npm 11 (`npx npm@11 install`); npm 10 falla al resolver peers con TypeScript 6.
|
||||
Reference in new issue
Block a user