/MERN-Ecommerce

This is a full-fledged MERN stack e-commerce site.

Primary LanguageJavaScriptMIT LicenseMIT

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 =Oscar@cardoso-devstar.com(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 (backend)

npm install

Run


# Run backend only
npm run server

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