Welcome to the eCommerce Platform Project built using the MERN (MongoDB, Express.js, React, Node.js) Stack. This project provides a robust and full-featured online shopping platform with various functionalities to enhance the user experience.
Live App Demo : https://mern-shop-abxs.onrender.com/ Note: Please be aware that Render's free tier will automatically shut down after 15 minutes of inactivity. Consequently, the first request after reactivation may experience a delay, but subsequent requests will be faster.
git clone https://github.com/your-username/MERN-eCommerce.git
cd MERN-eCommerce
.env.example
file to .env
and add the following environment variables:NODE_ENV=development
PORT=5000
JWT_SECRET=ADD_YOUR_JWT_SECRET_HERE
MONGO_URI=ADD_YOUR_MONGO_URI_HERE
RAZORPAY_KEY_ID=ADD_YOUT_RAZORPAY_KEY_ID
RAZORPAY_KEY_SECRET=ADD_YOUR_RAZORPAY_KEY_SECRET
PAGINATION_MAX_LIMIT=12 # This will show 12 products per page; you can change it.
EMAIL_HOST=smtp-relay.brevo.com
EMAIL_PORT=587
EMAIL_USER=ADD_YOUR_BREVO_LOGIN
EMAIL_PASS=ADD_YOUR_BREVO_PASSWORD
EMAIL_FROM=ADD_YOUR_BREVO_LOGIN
Run the following commands to install dependencies for both the frontend and backend:
npm install
cd frontend
npm install
To run both the frontend and backend concurrently, use:
npm run dev
To run only the backend:
npm run server
To create a production build for the frontend:
cd frontend
npm run build
Use the following commands to seed the database with sample users and products, or destroy all data:
# Import data
npm run data:import
# Destroy data
npm run data:destroy
Live Admin Dashboard Login:: https://mern-shop-abxs.onrender.com/admin/login
Live Customer Logins:: https://mern-shop-abxs.onrender.com/login
Feel free to explore and customize this eCommerce platform for your specific needs. Happy codingš¤©!
We welcome and appreciate contributions from the community to enhance and improve the eCommerce Platform Project. Whether you're a developer, designer, tester, or someone with valuable feedback, your input is valuable. Here's how you can contribute:
Fork the repository to your GitHub account.
Clone the forked repository to your local machine:
git clone https://github.com/your-username/MERN-eCommerce.git
Navigate to the project directory:
cd MERN-eCommerce
Create a new branch for your contributions:
git checkout -b feature/your-feature-name
git checkout -b issues/your-issue-name
Implement your changes and improvements.
Ensure that your changes adhere to the project's coding style and conventions.
Test your changes thoroughly to avoid introducing bugs.
Update the project documentation if necessary.
Commit your changes with a descriptive commit message:
git add .
git commit -m "Add your descriptive commit message here"
Push your changes to your forked repository:
git push origin feature/your-feature-name
git push origin issues/your-issue-name
Visit your forked repository on GitHub.
Switch to the branch containing your changes.
Click on the "New Pull Request" button.
Provide a clear title and description for your pull request, explaining the purpose and scope of your changes.
Submit the pull request.
Your contribution will be reviewed by the project maintainers. Be prepared to address any feedback or suggestions to ensure the quality and compatibility of your changes.
Thank you for considering contributing to the eCommerce Platform Project. Your efforts help make this project better for everyone. If you have any questions or need assistance, feel free to reach out through the issue tracker or discussions. Happy codingš¤©!