The sample is described in the following topics:
This sample demonstrates how to create and promote an application through its lifecycle stages and how to reuse the same datasource to connect to different databases at each stage.
A developer builds an application around customer data stored in an organization's database to which s/he does not have access to. S /he creates a database in development environment (developer cluster) with dummy customer data and points the application to the development database through a datasource. After development work is completed, the application is promoted to Testing and then over to Staging and production. At each of these stages, QA or a DevOps person maps the endpoint URL of the development database and points the same datasource to QA or the production database.
Set up App Factory using the instructions given in section Getting Started.
Executing the Sample
This usecase is already described in Consume a Datasource in all Lifecycle Stages of my Application.