/logistics-wizard-erp

Primary LanguageJavaScriptOtherNOASSERTION

Logistics Wizard ERP

master Build Status Coverage Status
dev Build Status Coverage Status

This service is part of the larger Logistics Wizard project.

Overview

With the Logistics Wizard app, we focus on the planning and delivery of products from distribution centers to retail locations. The Logistics Wizard ERP service defines a subset of a full ERP system data model and the API to access this system.

API Definition

The API and data models are defined in this Swagger 2.0 file. You can view this file in the Swagger Editor.

The API allows to:

  • log in and get access tokens;
  • get the list of Products, Distribution Centers, Retailers;
  • create, retrieve, update, delete Shipments.

The API defines the following roles:

  • supply chain manager - can view all data and manage Shipments
  • retail store manager - can view all data except Inventory and Suppliers

Logistics Wizard ERP Simulator

This project includes an ERP simulator implementing the API and data models defined above. With the simulator we remove the dependency on a real ERP giving us more flexibility to demonstrate edge cases like connectivity failures.

Supported use cases

The ERP service can be used to demonstrate different capabilities and configuration of IBM Bluemix.

Basic configuration to support for the use cases of the other services

In this configuration, the ERP service is only providing access to the data. We deploy the ERP simulator as a regular Cloud Foundry app in Bluemix and connect it to the rest of the system.

This configuration illustrates:

  • how to document an API with Swagger.io
  • how to quickly implement an API with Loopback.io
  • how to configure auto-scaling to cope with additional load
  • how to manage failures of a backend service and how to recover when it becomes available again
    • lost of connectivity between the ERP service and its database
    • lost of connectivity between the other services and the ERP service

>>> Follow these instructions to deploy and work with this configuration.

Hybrid configuration to access a on-prem ERP service

In this configuration, the Secure Gateway sits between the ERP service and the other services. All calls to the ERP service go through the Secure Gateway. We don't require a real on-prem ERP system, the ERP simulator is used.

This configuration illustrates:

  • how to expose an on-prem service outside of the enterprise
  • how to configure the security settings of the Secure Gateway

>>> Follow these instructions to deploy and work with the hybrid configuration.

License

See License.txt for license information.

Privacy Notice

This application is configured to track deployments to IBM Bluemix and other Cloud Foundry platforms. The following information is sent to a Deployment Tracker service on each deployment:

  • Node.js package version
  • Node.js repository URL
  • Application Name (application_name)
  • Space ID (space_id)
  • Application Version (application_version)
  • Application URIs (application_uris)
  • Labels of bound services
  • Number of instances for each bound service and associated plan information

This data is collected from the package.json file in the application and the VCAP_APPLICATION and VCAP_SERVICES environment variables in IBM Bluemix and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Bluemix to measure the usefulness of our examples, so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.

Disabling Deployment Tracking

Deployment tracking can be disabled by removing require("../tracker"); from the beginning of the server/server.js file.