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.
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
}
]
}
GET /api/v1/db/shipments/notify?shipment=S7&environment=dev
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.
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.
- Warning icon made by Alain Loubet [source]
- Siren icon made by Daniel Canabrava Torres [source]
- Distribution center icon made by freepik [source]
- Retail location icon made by SimpleIcon [source]
- Ground shipment icon made by freepik [source]
- Express shipment icon made by freepik [source]
- Accepted icon made by Yamini Ahluwalia [source]
- Rejected icon made by Kris Brauer [source]
- Pending icon made by Leonardo Schneider [source]
- Shipped icon made by Nicholas Menghini [source]
- Delivered icon made by addylord [source]
- Notify icon made by Edward Boatman [source]
- Help icon made by Consumer Financial Protection Bureau [source]
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.
Deployment tracking can be disabled by removing require("cf-deployment-tracker-client").track();
from the beginning of the app.js
file.