Skip to content

code-alchemist-arch/ecommerce-mern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

e-commerce

e-commerce site run by MERN stack

Env Variables

Create a .env file in then root and add the following

NODE_ENV = development
PORT = 5000
MONGO_URI = your mongodb uri
JWT_SECRET = your JWT secret
MAILGUN_KEY = your mailgun key
MAILGUN_DOMAIN = your mailgun domain
MAILGUN_EMAIL_SENDER = [email protected](your mailgun sender)
GOOGLE_CLIENT_ID=your google client id
GOOGLE_CLIENT_SECRET=your google client secret
GOOGLE_CALLBACK_URL=your google callback url
BASE_SERVER_URL=your base server url

Install Dependencies (frontend & backend)

npm install
cd frontend
npm install

Run

# Run frontend (:3000) & backend (:5000)
npm run dev

# Run backend only
npm run server

# Run frontend only
npm run client

Seed Database

You can use the following commands to seed the database with some sample users and products as well as destroy all data

Import data

npm run data:import

Destroy data

npm run data:destroy

About

E-Commerce website based on MERN stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published