Skip to content

youssefsaeed555/e-commerc

Repository files navigation

E-commerc

This project is a web application that allows users to shop for products, leave product reviews, manage their addresses, create wishlists, and make online payments using Stripe. It has been built using Node.js and features advanced error handling, validation layers, and security measures to ensure a seamless user experience.

Features

  1. Build the RESTful API of the App.
  2. Implemented authentication and authorization for different roles and permissions for different user roles and permissions to ensure data privacy and protection..
  3. Product Reviews and Wishlists: Users can leave product reviews and create wishlists to keep track of their favorite products, and manage their addresses.
  4. Implemented coupons, shopping cart, and online payments using Stripe.
  5. Enabled users to reset their password by sending them a verification email.
  6. Use multer for uploading files and use sharp for image processing.
  7. Enabled searching, filtering, and sorting of products.
  8. Enhanced project with advanced error handling and validation layer, the app has been enhanced with advanced error handling and validation layers to ensure that user inputs are accurate and error-free.
  9. Ensured the security of Node.js applications.

Technologies Used

  1. Mongoose
  2. Node.js
  3. Express.js
  4. Sharp
  5. Stripe
  6. NodeMailer

File Structure

├── app.js  
├── package.json
├── package-lock.json
├── .env
├── uploads/
├── routes/
│   ├── cartRoures.js
│   └── ...
└── services/
    ├── cartServices.js
    └── ...
└── middlewares/
    ├── express_validator.js
    └── ...
└── models/
    ├── userModel.js
    └── ...
└── utils/
    ├── errorHandling.js
    └── ...

Installation

  1. Clone or download the repository
  2. Open a terminal in the project's root directory
  3. Run npm install to install the required dependencies
  4. Run npm run start:dev to start the server
  5. Open http://localhost:3000 to view the app in localhost or https://e-commerce-k9vw.onrender.com for production

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published