This project is an e-commerce store built using React for the frontend, Express for the backend, and MongoDB as the database. It supports user authentication with sign-in and sign-up functionalities.
- User authentication (sign-in and sign-up)
- Explore products
- User profile management
- Cart management
- Wishlist functionality
- Order tracking
- Frontend: React
- Backend: Express
- Database: MongoDB
-
Clone the repository:
git clone ttps://github.com/shubbhhh/E-Commerce-website.git
-
Navigate to the project directory:
cd E-Commerce-website
-
Install dependencies:
-
For the frontend:
cd frontend npm install
-
For the backend:
cd backend npm install
-
-
Configure the environment variables:
-
Change the
config.js
file in the backend directory and add the following:const key = your_jwt_secret const DATABASE_URL = your_mongodb_connection_string module.exports = { JWT_Secret: key, DATABASE_URL: DATABASE_URL }
-
-
Run the application:
-
Start the backend server:
cd backend npm start
-
Start the frontend server:
cd frontend npm start
-
-
Access the application:
Open your browser and navigate to
http://localhost:5173
for the frontend.