An elegant and fully-featured e-commerce platform built using the MERN Stack, styled with Tailwind CSS, and integrated with Stripe for seamless payment processing.
Check out the live version: link
- User Authentication: Secure user sign-up, login, and authentication.
- Admin Dashboard: Manage products, orders, and users.
- Product Management: Add, update, and delete products.
- Cart & Checkout: Fully functional cart and checkout process.
- Stripe Integration: Safe and secure online payments using Stripe.
- Responsive Design: Optimized for mobile and desktop using Tailwind CSS.
- React.js : Fast, dynamic, and responsive UI.
- Tailwind CSS : Utility-first CSS framework for styling.
- React Router DOM : For routing.
- Node.js: Server-side runtime.
- Express.js: Web framework for Node.js.
- MongoDB: NoSQL database for storing user, product, and order data.
- Mongoose: MongoDB object modeling for Node.js.
- Stripe: Payment processing.
To get a local copy up and running, follow these simple steps.
- Node.js installed
- MongoDB Atlas account for remote database
- Stripe account for payment processing.
Clone the repository:
git clone https://github.com/Kushalchavan/e-commerce-mern.git
Install dependencies:
cd backend
npm install
Create a .env file and add the following:
MONGODB_URI=your-mongodb-url
# cloudinary
CLOUDINARY_API_KEY=your-cloudinary-key
CLOUDINARY_API_SECRET_KEY=your-cloudinary-api-key
CLOUDINARY_NAME=your-cloudinary-name
JWT_SECRET=reiqrepioqe
# for admin login
ADMIN_EMAIL=admin@zara.com
ADMIN_PASSWORD=qwerty123
STRIPE_SECRET_KEY=syour-stripe-key
Start the backend server:
npm run dev
Install frontend dependencies:
Copy code
cd frontend
npm install
Start the frontend development server:
npm run dev
For secure online payments, the app is integrated with Stripe. Ensure to set up a Stripe account and use your STRIPE_SECRET_KEY in the backend.
- User passwords are hashed using bcrypt.
- JWT-based authentication for user sessions.
- Stripe handles sensitive payment information.
Feel free to fork this repository and contribute by submitting a pull request.
Distributed under the MIT License. See LICENSE for more information.