An open API service indexing awesome lists of open source software.

https://github.com/maemoonfarooq/ecommerce-website

E-Commerce Website Welcome to the E-Commerce Website project! This project is built using the MERN stack (MongoDB, Express, React, Node.js). It includes essential features such as user registration, login, an admin panel, a shopping cart, and a product listing page.
https://github.com/maemoonfarooq/ecommerce-website

ecommerce-website express mern-stack mongodb nodejs react

Last synced: about 2 months ago
JSON representation

E-Commerce Website Welcome to the E-Commerce Website project! This project is built using the MERN stack (MongoDB, Express, React, Node.js). It includes essential features such as user registration, login, an admin panel, a shopping cart, and a product listing page.

Awesome Lists containing this project

README

        

E-Commerce Website
Welcome to the E-Commerce Website project! This project is built using the MERN stack (MongoDB, Express, React, Node.js). It includes essential features such as user registration, login, an admin panel, a shopping cart, and a product listing page.

Features
User Authentication:
Registration
Login
Logout
Admin Panel:
Manage products
Manage users
Shopping Cart:
Add products to cart
View cart items
Update cart items
Remove items from cart
Product Listing Page:
Display all products
Search for products

Installation:
Prerequisites
Node.js
MongoDB

Clone the Repository
git clone https://github.com/your-username/ecommerce-website.git
cd ecommerce-website
Backend Setup
Navigate to the backend directory:

cd backend
Install dependencies:

npm install
Create a .env file in the backend directory and add the following environment variables:

env
Copy code
MONGO_URI=your_mongo_db_connection_string
JWT_SECRET=your_jwt_secret
Start the backend server:

npm start
Frontend Setup
Navigate to the frontend directory:

cd frontend
Install dependencies:

npm install
Start the frontend development server:

npm start

Usage
Open your browser and navigate to http://localhost:3000 to view the website.
Use the admin panel to manage products and users (access restricted to admin users).

Technologies Used
Frontend:
React
Redux (for state management)
Axios (for HTTP requests)
Bootstrap (for styling)
Backend:
Node.js
Express
MongoDB (with Mongoose for ODM)
JWT (for authentication)
Contributing
Contributions are welcome! Please follow these steps to contribute:

Fork the repository
Create a new branch (git checkout -b feature/your-feature)
Commit your changes (git commit -m 'Add some feature')
Push to the branch (git push origin feature/your-feature)
Open a Pull Request