This repository contains the source code for a full-stack e-commerce platform. The project is divided into three main parts:
- Frontend: A React-based user interface for customers.
- Admin Panel: A React-based admin interface for managing products, orders, and users.
- Backend: A Node.js and Express-based API for handling business logic and database operations.
- Home Page: Displays featured products and categories.
- Product Pages: Detailed pages for individual products.
- Cart: Add, remove, and view items in the shopping cart.
- Authentication: Login and registration functionality.
- Search: Search bar for finding products.
- Contact Page: Contact information and form.
- Responsive Design: Optimized for mobile and desktop.
- Product Management: Add, edit, and delete products.
- Order Management: View and manage customer orders.
- Authentication: Admin login functionality.
- Sidebar Navigation: Easy access to admin features.
- User Authentication: Secure login and registration using JWT.
- Product Management: APIs for CRUD operations on products.
- Order Management: APIs for handling customer orders.
- Environment Variables: Configured using
dotenv.
- React
- React Router
- Tailwind CSS
- React Toastify
- React
- React Router
- React Toastify
- Node.js
- Express.js
- MongoDB
- JWT for authentication
- Bcrypt for password hashing
- Node.js
- MongoDB
- npm or yarn
-
Clone the repository:
git clone https://github.com/your-repo/e-commerce-platform.git cd e-commerce-platform -
Install dependencies for each part:
- Frontend:
cd frontend npm install - Admin Panel:
cd admin npm install - Backend:
cd backend npm install
- Frontend:
-
Set up environment variables:
- Create a
.envfile in thebackenddirectory with the following:MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret
- Create a
-
Run the development servers:
- Frontend:
cd frontend npm run dev - Admin Panel:
cd admin npm run dev - Backend:
cd backend npm start
- Frontend:
E-Commerce/
├── admin/ # Admin panel source code
├── backend/ # Backend API source code
├── frontend/ # Customer-facing frontend source code
└── README.md # Project documentation
This project is licensed under the MIT License.