Skip to main content
  1. All Posts/

EcommEasy

eCommerce JavaScript

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 admin@example.com http://localhost:3001

This script will add token with email admin@example.com 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