Skip to content

kunalraj1310/e-commerce

Repository files navigation

E-Commerce Platform

A full-stack e-commerce web application built with Node.js, Express.js, MongoDB, and EJS. The platform provides a seamless shopping experience with user authentication, product management, cart functionality, and an admin dashboard.

🚀 Features

User Features

  • User Registration & Login
  • Secure Authentication
  • Browse Products
  • Product Details Page
  • Shopping Cart Management
  • Quantity Update Controls
  • Order Summary
  • Responsive UI

Admin Features

  • Admin Authentication
  • Product Management
  • Add New Products
  • Edit Existing Products
  • Delete Products
  • Product Image Upload
  • Dashboard Management

🛠️ Tech Stack

Frontend

  • HTML5
  • CSS3
  • Tailwind CSS
  • EJS Templates
  • JavaScript

Backend

  • Node.js
  • Express.js

Database

  • MongoDB
  • Mongoose

Authentication & Security

  • JWT Authentication
  • bcrypt Password Hashing
  • Cookie Parser

File Uploads

  • Multer

📂 Project Structure

project-root/
│
├── config/
├── middlewares/
├── models/
├── public/
│   ├── css/
│   ├── images/
│   └── js/
├── routes/
├── views/
│   ├── partials/
│   └── *.ejs
├── app.js
├── package.json
└── vercel.json

⚙️ Installation

  1. Clone the repository
git clone https://github.com/kunalraj1310/e-commerce.git
  1. Navigate to the project directory
cd e-commerce
  1. Install dependencies
npm install
  1. Create a .env file
MONGODB_URI=your_mongodb_connection_string
JWT_KEY=your_secret_key
NODE_ENV=development
  1. Start the development server *** the app.listen is in run.js ***
node run.js

or

nodemon run.js

📸 Screenshots

Add screenshots of:

  • Home Page
  • Product Listing
  • Product Details
  • Shopping Cart
  • Admin Dashboard

🔒 Environment Variables

Variable Description
PORT Server Port
MONGODB_URI MongoDB Connection String
JWT_KEY JWT Secret Key
NODE_ENV Environment Mode

🌟 Future Improvements

  • Payment Gateway Integration
  • Wishlist Functionality
  • Order Tracking
  • Product Reviews & Ratings
  • Search & Filtering
  • Email Notifications
  • User Profile Management

🤝 Contributing

Contributions are welcome. Feel free to fork the repository and submit pull requests.

📄 License

This project is licensed under the MIT License.

👨‍💻 Author

Kunal Raj

GitHub: https://github.com/kunalraj1310

About

A full-stack e-commerce web application built with Node.js, Express.js, MongoDB, and EJS, featuring authentication, product management, shopping cart, order processing, and an admin dashboard.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors