feat(F-001): scaffold modular monolith skeleton with boundary checker
- TypeScript + Fastify skeleton under project/ (src/modules, shared, infrastructure, app) - scripts/check-module-boundaries.mjs enforcing module public-API rules (tested with fixtures) - GET /health endpoint, error envelope without stack leakage - specs/F-001-scaffold (SPEC/DESIGN/TASKS/TESTS), spec/tech.md dependency justification - 30-ticket MercadoDeVida roadmap in backlog/features.json, spec/roadmap.md - All gates approved: reviewer, security, qa; verify.sh green
This commit is contained in:
12
project/src/infrastructure/http/server.ts
Normal file
12
project/src/infrastructure/http/server.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { buildApp } from '../../app/build-app.js';
|
||||
|
||||
const port = Number(process.env.PORT ?? 3000);
|
||||
const host = process.env.HOST ?? '0.0.0.0';
|
||||
|
||||
try {
|
||||
const app = await buildApp();
|
||||
await app.listen({ port, host });
|
||||
} catch (error) {
|
||||
console.error('Failed to start HTTP server', error);
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user