A simple illustration of a web application that hosts static content as well as facilitates some JavaScript AJAX style consumption of a service hosted in Go.
To run this application locally:
glide installto populate your localvendor/directory.go build./web-application
To run it as a docker image, docker run -p 8100:8100 cloudnativego/web-application:latest
| Resource | Method | Description |
|---|---|---|
| / | GET | Home page (index.html) |
| /api/test | GET | Simple REST API that can be consumed from JavaScript |
| /cookies/write | GET | Writes cookies to the browser |
| /cookies/read | GET | Reads previously written cookies |