Skip to content

Files

Latest commit

5c668bb · Mar 20, 2023

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Example applications that implement the behaviours specified by this building block

Note that this same adaptor pattern (using Caddy) can be used to create adaptors for any GovStack building block specification, and may be used to mock BB endpoints that have not yet been developed.

Prerequisites

You need to have Docker and Docker Compose up and running to be able to run this repo. Install Docker and Docker Compose here.

After installing Docker, you may need to follow the steps here in order to execute Docker and Docker Compose without sudo.

Configure

To set up a demo, cd into that applications folder, copy the example env, set your own secrets, then start up via docker compose.

  • cd << someApp >>
  • cp .env.example .env
  • vim .env to change you secrets
  • (Optionally vim Caddyfile to swap out the site address localhost for http://136.164.122.12 or yoursite.com.)
  • docker compose up -d

Stop / Rebuild /Start

  • stop: docker compose down
  • rebuild: docker compose build
  • start: docker compose up -d

Test the GovStack BB APIs

  1. curl -k https://localhost/processes
  2. curl -k https://localhost/processes/14
  3. curl -k -X POST https://localhost/processes/14/start
  4. curl -k https://localhost/instances
  5. curl -k https://localhost/instances/12