Skip to content

Using the power of weather data and forecasts, shipments are dynamically created and augmented to optimize retail supply chain

License

Notifications You must be signed in to change notification settings

akesterton/supply-chain-weather

 
 

Repository files navigation

Supply Chain Weather Overview

Supply Chain Weather is a sample Bluemix application which utilizes the Weather Channel service and two mapping APIs, Leaflet and Esri Leaflet to dynamically create and augment shipments for a retail chain store's supply chain.

Build Status Bluemix Deployments

Example REST Calls

Creating a shipment (example)

POST /api/v1/db/shipments

Body:

{  
    "_id": "S7",
    "type": "shipment",  
    "service": "ground",
    "desc": "Cold weather clothes",
    "distribution": "D3",
    "retail": "R4",
    "status": "pending",
    "curLoc": "Charleston, South Carolina, US",
    "curLat": 32.780891,
    "curLon": -79.93471,
    "estDel": "Thu, 24 Oct 2015",
    "lastUpdate": "Thu, 24 Oct 2015 12:15:37 GMT",
    "items": [
        {
            "item": "I1",
            "quantity": 85
        },
        {
            "item": "I2",
            "quantity": 100
        },
        {
            "item": "I3",
            "quantity": 40
        }
    ]
}

Sending a notification for a new shipment (example)

GET /api/v1/db/shipments/notify?shipment=S7&environment=dev

Troubleshooting

The primary source of debugging information for your Bluemix app is the logs. To see them, run the following command using the Cloud Foundry CLI:

$ cf logs supply-chain-weather --recent

For more detailed information on troubleshooting your application, see the Troubleshooting section in the Bluemix documentation.

Contribute

We are more than happy to accept external contributions to this project, be it in the form of issues and pull requests. If you find a bug, please report it via the Issues section or even better, fork the project and submit a pull request with your fix! Pull requests will be evaulated on an individual basis based on value add to the sample application.

Credit

Privacy Notice

The supply-chain-weather sample web application includes code to track deployments to Bluemix and other Cloud Foundry platforms. The following information is sent to a Deployment Tracker service on each deployment:

  • Application Name (application_name)
  • Space ID (space_id)
  • Application Version (application_version)
  • Application URIs (application_uris)

This data is collected from the VCAP_APPLICATION environment variable 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. 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("cf-deployment-tracker-client").track(); from the beginning of the app.js file.

About

Using the power of weather data and forecasts, shipments are dynamically created and augmented to optimize retail supply chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.0%
  • CSS 14.1%
  • HTML 1.9%
  • CoffeeScript 1.0%