Simple Node.js based application that fetches customers and products from a commercetools project.
Uses commercetools nodejs SDK
- Install the latest version of node on your system
- Clone this repository
- Copy your Client Id, Client Secret and Project Key from the commercetools Merchant Center
- Insert these strings into the config.js file
- Verify your Auth and http hosts. This is dependent on which datacenter your commercetools project is hosted on.
US
Auth Host
https://auth.commercetools.co
http Host
https://api.commercetools.co
EU
Auth Host
https://auth.sphere.io
http Host
https://api.sphere.io
Build custom URI's for your requests
More info here
Gulp runs build and start command for you
On build code is transpiled by babel from /src to /dist
On start node runs the index file from /dist
$ npm install
$ gulp