Skip to content

YousefSaad47/pro-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pro-Shop E-Commerce Platform

E-Commerce platform built with the MERN stack

Demo

output.mp4

Screenshots 📸

Application Image 1 Application Image 2 Application Image 3
Application Image 1 Application Image 2 Application Image 3
Application Image 4 Application Image 5 Application Image 6
Application Image 7 Application Image 8 Application Image 9
Application Image 10 Application Image 11 Application Image 12
Application Image 13 Application Image 14 Application Image 15
Application Image 16 Application Image 17 Application Image 18
Application Image 19 Application Image 20 Application Image 21

Usage

  • 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

Env Variables

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>

Install Dependencies (frontend & backend)

cd backend/
npm install
cd frontend/
npm install

Run

# 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

Seed Database

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

Sample User Logins

[email protected] (Admin)
123456

[email protected] (Customer)
123456

[email protected] (Customer)
123456

Releases

No releases published

Packages

No packages published

Languages