Skip to content

youssefelzedy/NestCommerce

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Discord Backers on Open Collective Sponsors on Open Collective Donate us Support us Follow us on Twitter

Description

A robust and scalable backend API for a modern e-commerce platform, built with the NestJS framework.

This project provides a complete, modular, and testable foundation for developers to build and deploy online stores. It follows best practices for API design, including JWT authentication, clear data modeling with TypeORM, and a clean architecture to ensure maintainability and performance.

Key Features

  • Authentication: Secure user registration and login using JWT.
  • Product Management: Full CRUD operations for products, categories, and inventory.
  • Shopping Cart: A persistent cart system for both authenticated and guest users.
  • Order Processing: A complete checkout and order management workflow.
  • Dockerized: Comes with a docker-compose.yml for easy setup and deployment.

Technology Stack

  • Framework: NestJS
  • Language: TypeScript
  • Database: MySQL with TypeORM
  • Authentication: Passport.js with JWT Strategy
  • Testing: Jest
  • API Documentation: Postman

Project setup

$ npm install

Compile and run the project

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Run tests

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Deployment

When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the deployment documentation for more information.

If you are looking for a cloud-based platform to deploy your NestJS application, check out Mau, our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:

$ npm install -g @nestjs/mau
$ mau deploy

With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

About

NestCommerce - A feature-rich backend service for e-commerce platforms. Built with a focus on clean architecture and performance using the NestJS framework.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages