# veille-ia — application SvelteKit Voir le [README racine](../README.md) pour la vue d'ensemble, le dev local et les variables d'environnement, et [SPECS_SVELTE.md](../SPECS_SVELTE.md) pour les conventions de code (prioritaires sur tout choix frontend). ```bash npm ci npm run dev:local # dev zéro config : DEV_USER=dev + ALERTS_TOKEN=dev-token-local + DATA_DIR=./data npm run dev # dev nu (lit .env — voir .env.example) npm run check # svelte-check — 0 erreur / 0 warning exigé npm run lint # prettier + eslint npm run test # vitest npm run build # build adapter-node (BASE_PATH=/veille pour un sous-chemin) node build/index.js ``` Test de `POST /api/alerts` en local (avec `dev:local`) : ```bash curl -X POST http://localhost:5173/api/alerts \ -H "authorization: Bearer dev-token-local" \ -H "content-type: application/json" \ -d '{"type":"nouvelle_sortie","titre":"Test","resume":"Résumé test.","sources":["https://example.org"],"date":"2026-08-01"}' ```