Skip to content

Simple & easy app with Postgres. Can be easily deployed in SAP BTP.

License

Notifications You must be signed in to change notification settings

jacobahtan/btp-12-dogs-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

12-dogs-app

License: Apache2

Description

Sample 12-factor app implementation to run on SAP Business Technology Platform (cloud foundry)

This application can be deployed also on a Local Machine (for development purposes)

Requirments

Deployment

STEP 1 - Download or Clone this repository

STEP 2 - Navigate to the directory you cloned and Push the app to Cloud Foundry

cf push --random-route

STEP 3 - Set the environment variables using the following command.

cf set-env 12-dogs DOG_BREED spaniel
cf set-env 12-dogs DOG_SUBBREED cocker

STEP 4 - Create the DB service Instance.

Syntax: cf create-service <Service Name> <Service Plan> <Service Instance Name>

Syntax: cf bind-service <application name> <Service Instance Name>

cf create-service postgresql-db trial pgdbdogs
cf bind-service 12-dogs pgdbdogs

Note: For SAP BTP Trial account, you are ONLY entitled to ONE Postgres database service instance. Thus, if you already have an existing service instance, this step will fail. You can workaround by manually bind your existing PG service instance to 12-dogs app.

STEP 5 - Restart the app

cf restart 12-dogs

STEP 6 - Run the app on the route displayed in the terminal

Support and Contributions

This repository is provided "as-is". No support is available. Feel free to open issues or provide pull requests.

License

This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

About

Simple & easy app with Postgres. Can be easily deployed in SAP BTP.

Resources

License

Stars

Watchers

Forks

Languages

  • CSS 91.1%
  • JavaScript 5.2%
  • SCSS 2.5%
  • HTML 1.2%