MERN E-Commerce Project
Introduction Welcome to the MERN E-Commerce Project! This is a full-fledged e-commerce application built using the MERN stack. It includes functionalities like user authentication, product management, shopping cart, and order processing.
Features
=> User authentication and authorization
=> Product listing and search
=> Shopping cart and checkout process
=> Order management
=> Admin dashboard for managing products and orders
=> Responsive design for seamless experience across devices
=> Technologies Used
=> Frontend: React.js, Redux, Tailwind
=> Backend: Node.js, Express.js
=> Database: MongoDB, Mongoose
=> Authentication: JWT (JSON Web Tokens)
=> Payment Gateway: Stripe API
=> Getting Started
=> Follow these instructions to set up the project locally.
Prerequisites
=> Node.js and npm installed
=> MongoDB installed and running
=> Installation
=> Clone the repository
bash
=> git clone (https://github.com/nitindahiya199/mern-ecommerce)
=> cd mern-ecommerce
=> Install dependencies for both frontend and backend
bash
=> cd frontend
=> npm install
=> cd ../backend
=> npm i
=> Create a .env file in the backend directory and add the following environment variables
makefile
=> MONGO_URI=your-mongodb-uri
=> JWT_SECRET=your-jwt-secret
=> STRIPE_SECRET_KEY=your-stripe-secret-key
=> Run the development server
=> npm run dev
=> npm run dev
=> Open http://localhost:3000 to view the app in the browser.
Project Structure
mern-ecommerce/
├── backend/
│ ├── config/
│ ├── controllers/
│ ├── models/
│ ├── routes/
│ ├── utils/
│ ├── .env
│ ├── server.js
├── frontend/
│ ├── public/
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ ├── redux/
│ │ ├── App.js
│ │ ├── index.js
│ ├── package.json
├── README.md
Contributing
Contributions are welcome! Please fork this repository and submit a pull request for any improvements.
Fork the Project
=> Create your Feature Branch (git checkout -b feature/AmazingFeature)
=> Commit your Changes (git commit -m 'Add some AmazingFeature')
=> Push to the Branch (git push origin feature/AmazingFeature)
=> Open a Pull Request
Contact Your Name - @linkedin-handle - Nitin Dahiya
Project Link: https://github.com/nitindahiya199/mern-ecommerce