Skip to content

Nouran252/E-commerce_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ E-Commerce Backend API

A fully-featured e-commerce backend API built using Node.js, Express, and MongoDB. This project supports user authentication, product management, shopping cart, order processing, wishlists, reviews, and more β€” ideal for powering a modern online store.


πŸš€ Features

  • User Authentication (Sign up, Sign in, Sign out)
  • Role-based Access (Admin & Customer)
  • Product Management (CRUD operations, filtering, and search)
  • Cart Management (Add, remove, update items)
  • Order Processing (Place orders, view history)
  • Wishlist functionality
  • Product Reviews
  • Email Notifications via Nodemailer
  • Admin Controls: Manage users, products, and orders
  • Secure Routes with JWT authentication
  • Mongoose Models for data structure
  • RESTful API design

🧱 Tech Stack

  • Node.js
  • Express.js
  • MongoDB + Mongoose
  • JWT for Auth
  • Nodemailer (for email notifications)
  • Postman (for API testing)
  • bcrypt (password hashing)
  • dotenv (environment config)

Create a .env file and add the following:

PORT=3000
MONGODB_URI=your_mongodb_connection
JWT_SECRET=your_jwt_secret
EMAIL_USER=your_email@gmail.com
EMAIL_PASS=your_app_password

Use Postman to test the API endpoints.


πŸ“§ Email Notifications

Email notifications are sent upon successful order placement using Nodemailer. .


πŸ” Security

  • Passwords are hashed using bcrypt
  • Routes protected with JWT tokens
  • Admin-only access via middleware

🧠 Future Improvements

  • WebSocket notifications for real-time updates
  • Payment gateway integration
  • Product recommendations

πŸ™‹β€β™€οΈ Author

Contact: nouranmahmoud252@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published