Skip to content

A project implementing basic features of E-commerce. Frontend and Backend both including CRUD operation APIs in backend and Admin Page, Product and other things creating deleting and updating page through Admin, Home Page, Product-listing page, Particular-product page, Wishlist Page, Cart Page, Address and Payment Page, Payment Gateway and other…

Notifications You must be signed in to change notification settings

Ajay-Maury/MERN-E-Commerce-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN E-Commerce Project

Welcome to the MERN E-Commerce Project repository! This project is built using the MERN (MongoDB, Express.js, React, Node.js) stack along with various other technologies. This README will provide you with all the necessary information to understand, set up, and contribute to the project.

Table of Contents

  • Project Overview
  • Features
  • Technologies Used
  • Getting Started
  • Backend Configuration
  • Usage
  • Contributing

Project Overview

This E-Commerce project aims to create a fully functional (not too much focused on UI) online shopping platform. Users can browse through various products, add them to their cart, make purchases, and manage their orders. Admin users have access to a dashboard where they can manage products, inventory, orders, and customer information.

Features

  • Home Page

    image

  • Sign-in/Sign-up Page

    image

  • User Authentication Page

    image

  • User Profile Page

    image

  • Product Listing and Product Description Page

    image

  • Wishlist Page

    image

  • Cart Page

    image

  • Payment and Checkout Page

    image

  • Razorpay Payment Gateway Integration for Secure Transactions

    image

    image

  • Admin Dashboard for Inventory and Customer Management

    image

    image

    image

Technologies Used

  • Frontend: React (with Redux for state management)
  • Backend: Node.js (Express.js)
  • Database: MongoDB
  • Payment Integration: Razorpay
  • Material UI
  • JavaScript, HTML, CSS
  • Libraries: axios, bcrypt, express-validator, jsonwebtoken, mongoose, vite

Getting Started

Installation

  1. Clone the repository:
git clone https://github.com/Ajay-Maury/MERN-E-Commerce-Project.git
  1. Navigate to the project directory:
cd MERN-E-Commerce-Project
  1. Install backend and frontend dependencies:
npm install
cd Ecommerce-Frontend
npm install

Backend Configuration

  1. Rename .env.example to .env in the backend directory.

  2. Open the .env file in the backend directory.

  3. Configure your MongoDB connection URL and JWT secret key:

    # MongoDB Connection URI
    MongoDB_URI=your_mongodb_uri
    
    # JWT Secret Key
    JWT_SECRET_KEY=your_jwt_secret_key
  4. Add your Razorpay API Key and Secret:

    # Razorpay API Key and Secret
    Razorpay_Key_Id=your_razorpay_key_id
    Razorpay_Key_Secret=your_razorpay_key_secret

Your .env file should now look something like this:

MongoDB_URI=mongodb://localhost:27017/your_database_name
JWT_SECRET_KEY=yoursecretkey12345
Razorpay_Key_Id=your_razorpay_key_id
Razorpay_Key_Secret=your_razorpay_key_secret

Ensure that you replace your_mongodb_uri, your_jwt_secret_key, your_razorpay_key_id, and your_razorpay_key_secret with your actual values.

This configuration allows the backend to establish a connection to your MongoDB database, manage user authentication using JWT, and integrate with Razorpay for payment processing.

For reference, you can use the provided env.example file as a template when creating your .env file. Make sure not to share your actual sensitive keys and secrets in public repositories.

Usage

  1. Start the backend server:
npm run start
  1. Start the frontend development server:
cd Ecommerce-Frontend
npm run dev

Access the application at http://localhost:3000.

Contributing

We welcome contributions to this project! To contribute, follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature/bugfix.
  3. Make your changes and commit them with descriptive messages.
  4. Push your changes to your fork.
  5. Submit a pull request to the original repository.

Please ensure your code follows the project's coding standards and includes appropriate tests.

About

A project implementing basic features of E-commerce. Frontend and Backend both including CRUD operation APIs in backend and Admin Page, Product and other things creating deleting and updating page through Admin, Home Page, Product-listing page, Particular-product page, Wishlist Page, Cart Page, Address and Payment Page, Payment Gateway and other…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages