Skip to content

Full Stack Web Application built using Nodejs, Express, Mongoose, EJS, Multer, Flash.

Notifications You must be signed in to change notification settings

Kshiti-24/E-Commerce-Website

Repository files navigation

E-Commerce-Website

Welcome to the E-Commerce Website project! This web application provides a platform for users to browse, purchase products, and manage their accounts. Built using Node.js, Express, and Mongoose, this project ensures a seamless shopping experience with essential e-commerce functionalities.

Login/Register Page

2024-07-12 (5)

Products Page

2024-07-12 (4)

Cart Page

2024-07-12 (3)

Features

  • User Registration: New users can create an account to access the website's features.
  • User Login with Authentication: Registered users can log in securely using their credentials.
  • Product Management: Admin users can create products and add feature images.
  • Add to Cart: Users can add products to their cart for purchase.
  • User Logout: Users can log out, with their session managed through cookies.

Technologies Used

  • Node.js: JavaScript runtime built on Chrome's V8 JavaScript engine.
  • Express: A fast, unopinionated, minimalist web framework for Node.js.
  • Mongoose: Elegant MongoDB object modeling for Node.js.
  • Cookie-Parser: Middleware to handle cookies.
  • Multer: Middleware for handling file uploads.

Getting Started

Prerequisites

Ensure you have the following installed on your local machine:

  • Node.js
  • npm (Node Package Manager)
  • MongoDB Compass
  • Postman

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/e-commerce-website.git
    cd e-commerce-website
  1. Install dependencies:

    npm install
  2. Set up environment variables:

  • MONGO_URI = your_mongodb_connection_string
  • SECRET = your_secret_key
  1. Start the server:

    npm start
  2. Open your browser and navigate to:

    http://localhost:3000
    

About

Full Stack Web Application built using Nodejs, Express, Mongoose, EJS, Multer, Flash.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published