This repository contains a robust NestJS e-commerce API built with TypeORM and developed using Test-Driven Development (TDD) principles. The project demonstrates best practices for creating a scalable and maintainable API for e-commerce applications.
-
NestJS: Leverages the power of NestJS to build efficient and maintainable server-side applications in TypeScript.
-
TypeORM: Seamlessly integrates TypeORM to handle database interactions, ensuring a type-safe and reliable data layer for your e-commerce application.
-
Test-Driven Development (TDD): The project adheres to TDD principles, resulting in a codebase with comprehensive unit and integration tests for enhanced reliability and maintainability.
-
E-Commerce Functionality: Provides essential e-commerce features such as product management, user authentication, shopping cart handling, order processing, and more.
-
Docker Support: Offers Docker configuration for containerization, streamlining both development and deployment processes.
Follow these steps to set up and run the e-commerce API on your local machine: Clone the Repository:
git clone https://github.com/nainglinnphyo/e-commerce-store-with-tdd.git
Install Dependencies:
cd nestjs-ecommerce-api
npm install
Create a .env file based on the .env.example file and configure your environment variables.
npm run start:dev
To execute the project's comprehensive tests, use the following command:
npm run test