This is an e-commerce web application built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. The project aims to provide a scalable and efficient platform for online shopping.
- User authentication and authorization
- Product browsing and searching
- Shopping cart functionality
- Order processing and history
- Admin panel for product and user management
Before you begin, ensure you have met the following requirements:
- Node.js and npm installed
- MongoDB database
- React development environment
-
Clone the repository:
git clone https://github.com/abhijit2712/Ecommerce_App.git
Change into the project directory:
bash Copy code cd ecommerce-mern-stack Install dependencies:
bash Copy code npm install Set up environment variables:
Create a .env file in the root of the project.
Add the following variables:
env Copy code REACT_APP_API_URL=http://localhost:8000/api REACT_APP_CLIENT_URL=http://localhost:3000 Update the URLs accordingly.
Run the application:
bash Copy code npm run dev Usage Visit http://localhost:3000 in your browser to access the e-commerce application.
Folder Structure client: React frontend code server: Node.js and Express backend code config: Configuration files models: MongoDB schema models routes: Express routes controllers: Route controllers middlewares: Custom middleware functions utils: Utility functions Technologies Used MongoDB Express.js React.js Node.js JSON Web Tokens (JWT) for authentication Axios for HTTP requests Contributing Contributions are welcome! Please follow the Contributing Guidelines.
License This project is licensed under the MIT License.