Skip to content

EcommEasy is React and Node.js based eCommerce platform.

License

Notifications You must be signed in to change notification settings

EcommEasy/EcommEasy

Repository files navigation

EcommEasy - A seamless way to build your e-commerce application.

EcommEasy allows you to create production ready E-commerce Application built with React and Node.js.

Built with:

  • Node.js v8.9
  • Express
  • Babel
  • WebPack 4
  • MongoDB

Setup Instructions

EcommEasy Backend (API) Installation

  • Clone Git repository
git clone https://github.com/EcommEasy/EcommEasy.git
  • Go to EcommEasy app folder
 cd EcommEasy
  • Install dependencies
npm install
  • Setup database

Make sure to start MongoDB before run enything else. Create a directory for the database and pass the path to the dbpath

mongod --dbpath "yourpath"

Prepare database at this setup our database is empty. To add default data, indexes and access token we need to run:

npm run setup <email> <domain>

We don't have real domain, so we'll use our local domain:

npm run setup [email protected] http://localhost:3001

This script will add token with email [email protected] and my domain to http://localhost

  • Run Application

Start application in the background

pm2 start process.json

or you can start the app in your terminal:

npm start

At this setup, we have api running on port 3001 and available at http://localhost:3001

For example, here is the default store settings: http://localhost:3001/api/v1/settings

info: API running at http://localhost:3001
info: MongoDB connected successfully