Skip to content

emiedonmokumo/nestjs-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

NestJS Playground

This repository serves as a learning playground for exploring NestJS framework concepts and building REST APIs. It contains various projects demonstrating different aspects of NestJS development.

Projects

Project Description Concepts Demonstrated Status Features
Task Manager API RESTful API for managing tasks with basic CRUD operations Controllers, Services, DTOs, Dependency Injection, TypeScript Integration βœ… Complete β€’ Get all tasks
β€’ Create new tasks
β€’ Clean architecture

Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn

Installation & Setup

  1. Clone the repository:

    git clone <repository-url>
    cd nestjs-playground
  2. Navigate to a specific project:

    cd task-manager-api
  3. Install dependencies:

    npm install
  4. Start the development server:

    npm run start:dev
  5. The API will be available at http://localhost:3000

Testing

Run unit tests:

npm run test

Run E2E tests:

npm run test:e2e

Run tests with coverage:

npm run test:cov

Learning Goals

This playground is designed to explore and understand:

  • πŸ—οΈ NestJS decorators and modules
  • πŸ’‰ Dependency injection patterns
  • 🎯 Controller and service architecture
  • πŸ“ TypeScript integration
  • πŸ§ͺ Testing strategies in NestJS
  • 🌐 REST API design principles
  • πŸ”§ Code quality tools and practices
  • πŸ—„οΈ Database integration (MongoDB, PostgreSQL)
  • πŸ” Authentication and authorization
  • πŸ“Š Validation and pipes
  • πŸ”Œ Middleware and interceptors
  • πŸš€ Performance optimization
  • πŸ“ˆ Monitoring and logging

🎯 Future Project Ideas

Here are some concepts I plan to explore in upcoming projects:

Concept Project Idea Complexity
Database Integration User Management API with MongoDB Intermediate
Authentication JWT Auth Service Intermediate
Validation & Pipes Product Catalog with Validation Beginner
Middleware & Interceptors Request Logging System Intermediate
WebSockets Real-time Chat Application Advanced
Microservices Order Processing System Advanced
File Upload Image Upload Service Intermediate
Caching Redis-based Cache Layer Intermediate
Testing Advanced TDD E-commerce API Advanced
GraphQL Book Library GraphQL API Advanced

Contributing

Feel free to add new projects or improve existing ones. Each project should focus on demonstrating specific NestJS concepts or features.

License

This project is for educational purposes.

About

A Playground Repository with simple projects builts with nestjs for practice and demonstration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published