8000 GitHub - ahmed-elgzar/Node.js-E-commerce-Project: Node.js E-commerce Project
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ahmed-elgzar/Node.js-E-commerce-Project

Repository files navigation

Node.js E-commerce Project

This is a backend project for a simple E-commerce platform built using Node.js and Express.js. The goal is to create a clean and modular RESTful API.

✅ Features Implemented

  • 🔧 Modular project structure with Express & Mongoose
  • 📁 Full Category CRUD with validation (name, id)
  • 🧩 Subcategory module with full CRUD support
  • 🏷️ Brand module with full CRUD operations
  • 📏 Input validation using express-validator
  • 🛡️ Centralized error handling with custom error class
  • 🔄 Global process error handling (e.g., unhandledRejection)
  • 🧹 ESLint integration for consistent code style

📁 Project Structure

├── config/ # Configuration files (e.g. DB connection)
├── controllers/ # Logic for handling requests
├── models/ # Mongoose schemas (Category, SubCategory, etc.)
├── routes/ # Express route handlers
├── utils/
│ └── validators/ # Request validation schemas using express-validator
├── middlewares/ # Error handling and custom middleware
├── .eslintrc.json # ESLint configuration for code style consistency
├── server.js # Entry point of the app
├── package.json # Project dependencies and scripts
└── README.md #

🛠️ Technologies Used

  • Node.js
  • Express.js
  • MongoDB (via Mongoose)
  • dotenv
  • nodemon
  • express-validator
  • ESLint

About

Node.js E-commerce Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0