15 lines
492 B
Markdown
15 lines
492 B
Markdown
# 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.
|