stern-devops-2020-inventory / inventory

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.
Apache License 2.0
0 stars 0 forks source link

Obtain DB Credentials from VCAP_Services #54

Closed azelenovsky closed 4 years ago

azelenovsky commented 4 years ago

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:

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)

Maria-Bruno commented 4 years ago

I'm interested in working on this one