How gokul3710/qp-assessment works
Project type and purpose
• This is a modular, monolithic backend API built with the NestJS framework in TypeScript.
• It exposes REST endpoints for user authentication (signup/login using JWT), product catalog operations, order management, and event tracking/emission.
• It connects to a relational database via TypeORM, emits domain events internally, and follows a layered Controller→Service→Repository pattern.
File structure
• Top-level config files:
• Dockerfile, docker-compose.yaml – containerization
• tsconfig.json / tsconfig.build.json – TypeScript compilation
• nest-cli.json – Nest CLI configuration
• package.json / package-lock.json – dependencies & scripts
• src/
• app.module.ts – root module
• main.ts – application bootstrap
• auth/ – AuthModule (controllers, services, DTOs)
• user/ – UserModule (service, entity)
• products/ – ProductsModule
• order/ – OrderModule (with order-product entity)
• events/ – EventsModule (emitter, entity, service)
• common/ – shared guards, interceptors, decorators, constants, JWT strategy
• database/ – DatabaseModule (TypeORM configuration)
• test/ – e2e tests; src/**/*.spec.ts – unit tests
README for additional insights
• Generic NestJS starter; confirms REST-API use, test scripts, deployment steps.