Marketplace móvil para negocios locales mexicanos. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React Web) - apps/mobile (Expo/React Native) - apps/mcp-server (Claude MCP Server) - apps/whatsapp-service (WhatsApp Business API) - database/ (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
2.4 KiB
JavaScript
47 lines
2.4 KiB
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const core_1 = require("@nestjs/core");
|
|
const common_1 = require("@nestjs/common");
|
|
const config_1 = require("@nestjs/config");
|
|
const swagger_1 = require("@nestjs/swagger");
|
|
const helmet_1 = __importDefault(require("helmet"));
|
|
const app_module_1 = require("./app.module");
|
|
async function bootstrap() {
|
|
const app = await core_1.NestFactory.create(app_module_1.AppModule);
|
|
const configService = app.get(config_1.ConfigService);
|
|
app.use((0, helmet_1.default)());
|
|
app.enableCors({
|
|
origin: configService.get('CORS_ORIGIN', '*'),
|
|
credentials: true,
|
|
});
|
|
app.useGlobalPipes(new common_1.ValidationPipe({
|
|
whitelist: true,
|
|
transform: true,
|
|
}));
|
|
const config = new swagger_1.DocumentBuilder()
|
|
.setTitle('MiChangarrito WhatsApp Service')
|
|
.setDescription('Servicio de integración WhatsApp Business API')
|
|
.setVersion('1.0')
|
|
.addTag('webhook', 'WhatsApp Webhook endpoints')
|
|
.addTag('messages', 'Envío de mensajes')
|
|
.build();
|
|
const document = swagger_1.SwaggerModule.createDocument(app, config);
|
|
swagger_1.SwaggerModule.setup('docs', app, document);
|
|
const port = configService.get('PORT', 3143);
|
|
await app.listen(port);
|
|
console.log(`
|
|
╔══════════════════════════════════════════════════════════════╗
|
|
║ MICHANGARRITO WHATSAPP SERVICE ║
|
|
╠══════════════════════════════════════════════════════════════╣
|
|
║ Status: Running ║
|
|
║ Port: ${port} ║
|
|
║ Webhook: /webhook/whatsapp ║
|
|
║ Docs: http://localhost:${port}/docs ║
|
|
╚══════════════════════════════════════════════════════════════╝
|
|
`);
|
|
}
|
|
bootstrap();
|
|
//# sourceMappingURL=main.js.map
|