Demo App

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 (DEMO_USERNAME and DEMO_PASSWORD). If they are set correctly, it shows a success page. If not, it shows an error page.

All Commands

The following commands are used to set up and run the Demo App:


Init

secrethub demo init [<flags>]

The demo init command creates a repo with the two secrets used by the demo app: username and password.

Flags

--repo (string)
The path of the repository to create. Defaults to a repo named demo in your personal namespace.

Serve

To run the Demo App locally, execute:

secrethub demo serve [<flags>]

Flags

-h, --host (string)
The host to serve the Demo App on. Defaults to “127.0.0.1”.
--port (string)
The port to serve the Demo App on. Defaults to 8080.