The SecretHub Demo App is a simple application used to help you get started with SecretHub.
It is used in a number of guides to demonstrate the basic functionality of SecretHub.
The app servers a web page and tries to connect to https://demo.secrethub.io/api/basic-auth using credentials provided in the environment (
If they are set correctly, it shows a success page. If not, it shows an error page.
The following commands are used to set up and run the Demo App:
demo init- create the secrets necessary to connect with the demo application
demo serve- run the demo app locally
secrethub demo init [<flags>]
demo init command creates a repo with the two secrets used by the demo app:
- The path of the repository to create. Defaults to a repo named
demoin your personal namespace.
To run the Demo App locally, execute:
secrethub demo serve [<flags>]
- The host to serve the Demo App on. Defaults to “127.0.0.1”.
- The port to serve the Demo App on. Defaults to 8080.