import { NestFactory } from "@nestjs/core"; import { AppModule } from "./app.module"; import { setupGlobalMiddleware } from "./setup"; async function bootstrap() { const app = await NestFactory.create(AppModule); setupGlobalMiddleware(app); const port = process.env.PORT || 3000; await app.listen(port, "0.0.0.0"); console.log(`\nšŸ„ Maternal Health Support Backend`); console.log(`āš ļø CARE-SUPPORT TOOL - NOT A DIAGNOSTIC SYSTEM`); console.log(`šŸš€ Server running on: http://localhost:${port}/api/v1`); console.log(`šŸ“” Network access: http://10.120.165.24:${port}/api/v1\n`); } bootstrap();