The inventory resource keeps track of how many of each product we have in our warehouse. At a minimum it should reference a product and the quantity on hand. Check with the Product team for the format of the product id. Inventory could also track restock levels and the condition of the item (i.e., new, open box, used). Restock levels will help you know when to order more products. Being able to query products by their condition (e.g., new, used) could be very useful.
As a Product Manager
I need my application to leverage environment variables
So that it can be transferred between environments without conflicts
Assumptions:
VCAP_Services are present
Acceptance Criteria:
Given the application running in the cloud
When a database request is made
Then VCAP_SERVICES env variable to used to get the database credentials
Modify your application to get the database credentials from the VCAP_SERVICES environment variable if you are using an IBM Cloud database like Cloudant or IBM DB2, or DATABASE_URI if you are using a 3rd party database like PostgreSQL (from ElephantSQL.com). (hint: see models.py in lab-bluemix-cf for an example)
As a Product Manager I need my application to leverage environment variables So that it can be transferred between environments without conflicts
Assumptions:
Acceptance Criteria:
Modify your application to get the database credentials from the VCAP_SERVICES environment variable if you are using an IBM Cloud database like Cloudant or IBM DB2, or DATABASE_URI if you are using a 3rd party database like PostgreSQL (from ElephantSQL.com). (hint: see models.py in lab-bluemix-cf for an example)