Skip to content
gem-plusPublic

About

A full-stack e-commerce web application built with Node.js, Express.js, MongoDB, and JavaScript, featuring user authentication, product management, shopping cart, and order functionality.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

🛒 E-Commerce Web Application

A full-stack E-Commerce web application built using Node.js, Express.js, MongoDB, and JavaScript. The application provides user authentication, product management, shopping cart functionality, and order placement.


🚀 Features

  • 🔐 User Registration & Login
  • 🔑 JWT Authentication
  • 🍪 Cookie-based Authentication
  • 👤 User Profile
  • 🛍️ Product Listing
  • ➕ Add to Cart
  • ❌ Remove from Cart
  • 📦 Place Orders
  • 📱 Responsive Frontend
  • 🗄️ MongoDB Database Integration

🛠️ Tech Stack

Frontend

  • HTML5
  • CSS3
  • JavaScript

Backend

  • Node.js
  • Express.js

Database

  • MongoDB
  • Mongoose

Authentication

  • JWT (JSON Web Token)
  • Bcrypt
  • Cookie Parser

📂 Project Structure

E-Com-main/
│
├── public/
│   ├── assets/
│   ├── javascripts/
│   ├── stylesheets/
│   ├── index.html
│   ├── login.html
│   └── register.html
│
├── protected/
│   ├── cart.html
│   └── profile.html
│
├── src/
│   ├── config/
│   ├── controllers/
│   ├── middleware/
│   ├── models/
│   ├── routes/
│   └── services/
│
├── server.js
├── package.json
└── README.md

⚙️ Installation

1. Clone the repository

git clone https://github.com/your-username/E-Com-main.git

2. Navigate to the project folder

cd E-Com-main

3. Install dependencies

npm install

4. Create a .env file

PORT=3000
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key

5. Run the application

node server.js

or with Nodemon

npx nodemon server.js

📌 API Overview

Authentication

  • Register User
  • Login User
  • Logout User

Products

  • Get All Products
  • Get Product Details

Cart

  • Add Product to Cart
  • Remove Product from Cart

Orders

  • Place Order

📸 Screenshots

Add screenshots of:

  • Home Page
  • Login Page
  • Registration Page
  • Product Page
  • Shopping Cart
  • User Profile

📦 Dependencies

  • Express
  • Mongoose
  • Dotenv
  • JWT
  • Bcrypt
  • Cookie Parser
  • Nodemon

🔒 Environment Variables

Variable Description
PORT Server Port
MONGODB_URI MongoDB Connection String
JWT_SECRET JWT Secret Key

🚀 Future Improvements

  • Payment Gateway Integration
  • Product Search
  • Wishlist
  • Product Categories
  • Admin Dashboard
  • Order History
  • Image Upload
  • Product Reviews
  • Email Verification

👨‍💻 Author

Your Name

GitHub: https://github.com/your-username


📄 License

This project is licensed under the MIT License.


⭐ If you like this project, don't forget to star the repository!

About

A full-stack e-commerce web application built with Node.js, Express.js, MongoDB, and JavaScript, featuring user authentication, product management, shopping cart, and order functionality.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages