| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A structured NestJS learning repository — covering architecture, dependency injection, modules, controllers, pipes, validation, exception filters, database integration, and environment config. Each folder has working code and detailed notes.
NestJS brings opinionated structure to Node.js backends — this repo works through that structure systematically, from how a NestJS app boots up to building a full REST API with validation, error handling, and a database layer.
| Folder | Topic | What's Covered |
|---|---|---|
| basics | NestJS Basics | Project structure, main.ts bootstrap, decorators, app module |
| Architecture | Architecture Overview | How NestJS layers (modules, controllers, services) fit together |
| routingAndController | Routing & Controllers | @Controller, @Get, @Post, route params, query strings, request/response |
| services | Services | @Injectable, business logic separation, service layer patterns |
| modules | Modules | @Module, feature modules, shared modules, module encapsulation |
| dependency-injection | Dependency Injection | DI container, providers, UserStore service implementation |
| pipes | Pipes | Built-in pipes (ValidationPipe, ParseIntPipe), custom pipes, transformation |
| validation | Validation | class-validator, class-transformer, DTO validation patterns |
| exception-filter | Exception Filters | @Catch, built-in HTTP exceptions, custom exception filters |
| REST API | REST API | Putting it together — a complete REST API with modules, controllers, services |
| Guide-db | Database (ORM) | Connecting NestJS to a database via TypeORM or Prisma, entity definitions |
| Config-Module&env | Config & Environment | @nestjs/config, .env files, ConfigService, environment-based config |
Each folder contains:
Three architecture diagrams are included at the repo root:
# 1. Clone the repo
git clone https://github.com/Wcoder547/NestJS.git
cd NestJS
# 2. Navigate to any module
cd "REST API"
# 3. Install dependencies
npm install
# 4. Start the dev server
npm run start:devAPI runs at http://localhost:3000 by default.
basics → Architecture → routingAndController → services → modules → dependency-injection → pipes → validation → exception-filter → Config-Module&env → Guide-db → REST API
Start with basics and Architecture together — understanding how NestJS boots and how its layers relate makes everything else predictable.
NestJS is what happens when you take Node.js seriously as an enterprise backend platform — it enforces separation of concerns, makes dependency injection a first-class citizen, and gives teams a shared language for structuring applications.
This repo was built to understand that structure from the inside out: not just how to use @Controller and @Injectable, but why the architecture is shaped the way it is, what problem each layer solves, and how all the pieces connect when you build a real API.
Built by Waseem Akram — Full-Stack Developer and DevOps Engineer based in Pakistan, working across the MERN stack, Generative AI integrations, and cloud automation.
If this helped you, consider giving it a ⭐
| Back | FazBrowse Home | New Git URL |