Description
Set up a centralised config module using NestJS ConfigModule that validates all required environment variables at startup. Missing or malformed config should cause the application to fail fast with a clear error — not silently misbehave in production. All other modules should consume config through this single module rather than reading process.env directly.
Acceptance Criteria
Description
Set up a centralised
configmodule using NestJSConfigModulethat validates all required environment variables at startup. Missing or malformed config should cause the application to fail fast with a clear error — not silently misbehave in production. All other modules should consume config through this single module rather than readingprocess.envdirectly.Acceptance Criteria
configmodule is scaffolded atsrc/config/@nestjs/configwith Joi validation is used for env schema enforcementDATABASE_URL,JWT_SECRET,JWT_EXPIRY,PORTConfigServiceacross all modules.env.exampledocuments all required and optional variables