Skip to content

This is e commerce project with create order track order and authentication feature

Notifications You must be signed in to change notification settings

Mr-jas91/mern-e-com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Project

Table of Contents

Project Description

This is an e-commerce application built using Vite with React for the frontend and Express for the backend. The application provide feature to make a order and track the order.

The backend handles authentication using JWT for token generation and bcrypt for password hashing. The application includes login, logout, and signup functionalities.

Features

  • User authentication (signup, login, logout, currentuser)
  • Password hashing using bcrypt
  • Token-based authentication using JWT

Technologies Used

  • Frontend:
    • Vite
    • React
  • Backend:
    • Express
    • JWT (JSON Web Tokens)
    • bcrypt

Setup and Installation

backend .env sample

PORT = "5000"
ACCESS_TOKEN_SECRET = "YOUR SECRET TOKEN"
ACCESS_TOKEN_EXPIRY= "1d"
REFRESH_TOKEN_SECRET = "YOUR SECRET TOKEN"
REFRESH_TOKEN_EXPIRY = "10d"
MONGODB_URI = "YOUR MONGODB URL"
allowedOrigin = "http://localhost:5173"
CLOUDINARY_CLOUD_NAME = "YOUR CLOUDINARY UNIQUE NAME"
CLOUDINARY_API_KEY = "YOUR CLOUDINARY API KEY"
CLOUDINARY_API_SECRET = "YOUR CLOUDINARY API SECRET TOKEN"

backend .env sample

VITE_REDUX_DEVTOOLS = development
VITE_API_URL= "http://localhost:8000/api"

Prerequisites

  • Node.js (v14.x or later)

Installation

  1. Clone the repository:

    git clone https://github.com/Mr-jas91/mern-e-com.git
    cd mern-e-com
    
  2. Install dependencies for both frontend and backend:

  • For the frontend:
cd frontend
npm install
  • for backend
cd backend
npm install

Run the Project

  1. Start the backend server:
cd backend
npm start
  1. Start the frontend server:
cd frontend
npm run dev

The user interface will be running on http://localhost:5173.

Usage

User Interface

Visit http://localhost:5173 to access the user interface. Users can sign up, log in, and log out using the provided functionalities.

Project admin

Jasvant maddheshiya

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This is e commerce project with create order track order and authentication feature

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages