How winnicius-moura/calc-mp-api works
Project type and purpose
• This is a NestJS-based Node.js monolithic API server starter.
• Purpose: provide a structured, scalable backend with built-in support for modules, configuration, Swagger, and TypeORM.
File structure
• Top-level files: package.json, nest-cli.json, tsconfig.json, eslint.config.mjs, README.md
• src/
• app.module.ts – root module
• app.controller.ts / app.controller.spec.ts – HTTP controller + unit tests
• app.service.ts – business-logic service
• infrastructure/config/
– swagger.config.ts – Swagger/OpenAPI setup
– typeorm.config.ts – database connection via TypeORM
• main.ts – application bootstrap
• test/ – e2e tests
• config/build & lint files → build, test, and deployment scripts
README for additional insights
• Uses NestJS modules, controllers, services, TypeORM, and Swagger.
• Encourages production builds, live-reload, tests, and Mau/AWS deployment.
Elements
• Client → HTTP Server (HTTP request)
• HTTP Server → AppController (route handler)
• AppController → AppService (method calls)
• AppService → TypeORM Module → Database (SQL queries)