Skip to content

dockhero/quic-protocol-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QUIC protocol example app

Simple NodeJS app rendered via Caddy-enabled proxy to support QUIC protocol

Deployed to Heroku using Dockhero addon

Screenshot

NOTE: you may need to enable QUIC protocol support in Chrome in order to test this

Endpoints

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/pets

Deployment to Heroku

First checkout the repo and deploy it to Heroku. Make sure it is available via *.herokuapp.com URL:

heroku create
git push heroku master
heroku open

Then install Dockhero addon and CLI plugin

heroku addons:create dockhero
heroku plugins:install dockhero
heroku dh:wait

Now spin up the stack described by dockhero-compose.yml

heroku dh:compose up -d

and check the logs with

heroku logs --tail -p dockhero

If everything went fine, you should be able to see the app via Dockhero URL:

heroku dh:open

About

Simple NodeJS app rendered via Caddy-enabled proxy to support QUIC protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors