E-Commerce platform built with the MERN stack
output.mp4
- Create a MongoDB database and obtain your
MongoDB URI
- MongoDB Atlas - Create a Stripe account and obtain your
Secret Key, Publishable Key, Web Hook Secret
- Stripe Developer
Rename the .env.example
file to .env
and add the following
NOVE_END=development
PORT=8080
MONGO_CONNECTION=<your_mongo_connection>
JWT_SECRET=<your_jwt_secret>
STRIPE_SECRET_KEY=<your_stripe_secret>
STRIPE_PUBLISHABLE_KEY=<your_stripe_publishable_key>
STRIPE_WEBHOOK_SECRET=<your_stripe_webhook_secret>
cd backend/
npm install
cd frontend/
npm install
# Run frontend (:5173) & backend (:8080)
cd backend/
npm run server
cd frontend/
npm run dev
# Run backend only
cd backend/
npm run server
# Run frontend only
cd frontend/
npm run dev
You can use the following commands to seed the database with some sample users and products as well as destroy all data
# in the backend
cd backend/
# Import data
npm run data:import
# Destroy data
npm run data:destroy
[email protected] (Admin)
123456
[email protected] (Customer)
123456
[email protected] (Customer)
123456