Simple NodeJS app rendered via Caddy-enabled proxy to support QUIC protocol
Deployed to Heroku using Dockhero addon
NOTE: you may need to enable QUIC protocol support in Chrome in order to test this
GET / # some intro in HTML
GET /pets # list of pets, just their names
GET /pets/:name # pet's details (by name)
POST /pets # creates a new pet
To add new pets via CURL:
curl -H "Content-Type: application/json" -X POST -d '{"name":"kitty","species":"cat"}' https://vital-sun-4864.dockhero.io/petsFirst checkout the repo and deploy it to Heroku. Make sure it is available via *.herokuapp.com URL:
heroku create
git push heroku master
heroku openThen install Dockhero addon and CLI plugin
heroku addons:create dockhero
heroku plugins:install dockhero
heroku dh:waitNow spin up the stack described by dockhero-compose.yml
heroku dh:compose up -dand check the logs with
heroku logs --tail -p dockheroIf everything went fine, you should be able to see the app via Dockhero URL:
heroku dh:open