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>
67 lines
3.5 KiB
JavaScript
67 lines
3.5 KiB
JavaScript
"use strict";
|
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.AppModule = void 0;
|
|
const common_1 = require("@nestjs/common");
|
|
const config_1 = require("@nestjs/config");
|
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
const auth_module_1 = require("./modules/auth/auth.module");
|
|
const products_module_1 = require("./modules/products/products.module");
|
|
const categories_module_1 = require("./modules/categories/categories.module");
|
|
const sales_module_1 = require("./modules/sales/sales.module");
|
|
const payments_module_1 = require("./modules/payments/payments.module");
|
|
const customers_module_1 = require("./modules/customers/customers.module");
|
|
const inventory_module_1 = require("./modules/inventory/inventory.module");
|
|
const orders_module_1 = require("./modules/orders/orders.module");
|
|
const subscriptions_module_1 = require("./modules/subscriptions/subscriptions.module");
|
|
const messaging_module_1 = require("./modules/messaging/messaging.module");
|
|
const billing_module_1 = require("./modules/billing/billing.module");
|
|
const integrations_module_1 = require("./modules/integrations/integrations.module");
|
|
let AppModule = class AppModule {
|
|
};
|
|
exports.AppModule = AppModule;
|
|
exports.AppModule = AppModule = __decorate([
|
|
(0, common_1.Module)({
|
|
imports: [
|
|
config_1.ConfigModule.forRoot({
|
|
isGlobal: true,
|
|
envFilePath: ['.env.local', '.env'],
|
|
}),
|
|
typeorm_1.TypeOrmModule.forRootAsync({
|
|
imports: [config_1.ConfigModule],
|
|
inject: [config_1.ConfigService],
|
|
useFactory: (configService) => ({
|
|
type: 'postgres',
|
|
host: configService.get('DB_HOST', 'localhost'),
|
|
port: configService.get('DB_PORT', 5432),
|
|
username: configService.get('DB_USERNAME', 'michangarrito_dev'),
|
|
password: configService.get('DB_PASSWORD', 'MCh_dev_2025_secure'),
|
|
database: configService.get('DB_DATABASE', 'michangarrito_dev'),
|
|
schema: configService.get('DB_SCHEMA', 'public'),
|
|
autoLoadEntities: true,
|
|
synchronize: false,
|
|
logging: configService.get('NODE_ENV') === 'development',
|
|
ssl: configService.get('DB_SSL') === 'true' ? { rejectUnauthorized: false } : false,
|
|
}),
|
|
}),
|
|
auth_module_1.AuthModule,
|
|
products_module_1.ProductsModule,
|
|
categories_module_1.CategoriesModule,
|
|
sales_module_1.SalesModule,
|
|
payments_module_1.PaymentsModule,
|
|
customers_module_1.CustomersModule,
|
|
inventory_module_1.InventoryModule,
|
|
orders_module_1.OrdersModule,
|
|
subscriptions_module_1.SubscriptionsModule,
|
|
messaging_module_1.MessagingModule,
|
|
billing_module_1.BillingModule,
|
|
integrations_module_1.IntegrationsModule,
|
|
],
|
|
})
|
|
], AppModule);
|
|
//# sourceMappingURL=app.module.js.map
|