Public | Automated Build

Last pushed: 9 months ago
Short Description
kohler-orders-to-sap
Full Description

Kohler Orders To SAP

This is service takes open orders from Sphere Client and converts it to an XML Object that fits the Kohler schema for SAP. Once the order has been sent to SAP it will update the status of the of the order in the commercetools project from Open to Confirmed.

Microservice uses the following technologies:

  • NodeJS
  • ES6
  • BabelJS
  • Jasmine
  • ESLint
  • Gulp
  • Docker
  • Iron.io

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

  • Node.js - Download & Install Node.js and the npm package manager. Version 6.9

  • Gulp - Make sure you've installed Node.js and npm first, then install gulp globally using npm:

$ npm install -g gulp

##Quick Install##
The first thing you should do is install the Node.js dependencies.

$ npm install

Build

The code is based on ES6, so in order to run in environments that do not fully support ES6 we need Babel to transpile the code from ES6 to ES5.
The destination path is the /app folder

gulp build

After installing the dependencies for running with development config:

gulp

For running with prod config:

gulp run_production

Check for JS code quality

gulp lint

Test

gulp test

Papertrail

Link to Papertrail logs

Docker

Link to Docker Hub Repo

Iron.io

Link to Iron.io Worker

Configuration

The configuration is stored in a yaml file that is saved within Iron.io
To access go to the Iron Work, click the codes tab, and then reference the config box on the right

Docker Pull Command
Owner
sphereio

Comments (0)