A comprehensive and modern e-commerce platform built with React, Tailwind CSS, and Node.js, designed to provide a seamless and intuitive shopping experience. This project features user authentication, product browsing, cart management, and secure payment processing using Stripe.
Make sure you have the following installed on your local machine:
Clone the repository:
https://github.com/kumarprince06/Full-Stack-MERN-E-Commerce.git
Navigate to the project directory:
cd Full-Stack-MERN-E-Commerce
Install dependencies for both frontend and backend:
Frontend:
cd frontend
npm install
Backend:
cd ../backend
npm install
Set up environment variables:
Create a .env
file in the server
directory and add the following:
PORT=5000
MONGO_URI=your_mongodb_connection_string
STRIPE_SECRET_KEY=your_stripe_secret_key
FRONTEND_URL=http://localhost:3000
MAIL_HOST=
MAIL_USER=your_email
MAIL_PASS=your_mail_app_security_key
STRIPE_SECRET_KEY =your_stripe_account_secret_key
STRIPE_WEBHOOK_END_POINTS_SECRET = your_Stripe_Webhook_endpoints_Sekret_key
Configure Stripe in sbackend/config/stripe.js
:
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);
module.exports = stripe;
Start the MongoDB server:
mongod
Start the backend server:
cd backend
npm run dev
Start the frontend server:
cd ../frontend
npm start
Open your browser and navigate to http://localhost:3000
Contributions are welcome! Please follow these steps:
git checkout -b feature-branch
).git commit -m 'Add some feature'
).git push origin feature-branch
).This project is licensed under the MIT License - see the LICENSE file for details.