How federico-osandon/auth-mongo-skeleton-nestjs works
Project type and purpose
• This is a monolithic backend application built with NestJS (a TypeScript Node.js framework).
• It exposes a RESTful API, handles user authentication (JWT + Prisma ORM), and persists data in a relational database (configured by Prisma).
File structure
• Top-level config:
• .env.template + src/config/* → environment variables and service-specific config.
• dockerfile / dockerfile.prod + cloudbuild.yml → container images and CI/CD pipeline.
• Source code under src:
• app.module.ts → root Nest module wiring sub-modules.
• src/auth → the authentication module (controller, service, DTOs, interfaces).
• main.ts → Nest application bootstrap.
• ORM config:
• prisma/schema.prisma → database schema and client generation.
• Testing:
• test/app.e2e-spec.ts → end-to-end tests.
• Build & linting:
• TypeScript configs (tsconfig*.json), ESLint, Prettier, npm scripts.
README for additional insights
• It’s a starter project for NestJS, listing standard npm scripts, test commands, and CI badges.
Detailed capture of essential architectural elements
• Root AppModule and its imports of AuthModule and ConfigModule.
• Injection of PrismaService into other services.
• How .env values flow through ConfigModule into services.