You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AppModule is the root module that wires together every feature module, database connection, configuration, and global providers. It needs to be set up correctly so all modules can resolve their dependencies.
Acceptance Criteria
Create backend/src/app.module.ts with @Module({})AppModule
Labels:
backendsetupnestjsArea:
backend/src/app.module.tsDifficulty: Intermediate
Description
AppModuleis the root module that wires together every feature module, database connection, configuration, and global providers. It needs to be set up correctly so all modules can resolve their dependencies.Acceptance Criteria
backend/src/app.module.tswith@Module({})AppModuleConfigModule.forRoot({ isGlobal: true, envFilePath: ".env", load: [appConfig, databaseConfig, cloudinaryConfig] })TypeOrmModule.forRootAsync(typeormConfig)using the config factory from Issue [Contract] Order Management — Status Lifecycle & Cancellation #84AuthModule,AdminModule,MenuModule,ContactModule,GalleryModule,InstagramModule,AnalyticsModule,TrendingModule,AuditModule,UploadModuleThrottlerModule.forRoot([{ ttl: 60000, limit: 100 }])for basic rate limitingThrottlerGuardglobally viaAPP_GUARDproviderAppModule— all logic lives in feature modulesTechnical Notes
ConfigModulewithisGlobal: truemakesConfigServiceavailable everywhere without re-importingConfigModule@Throttle()