demo-app

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 25 Imported by: 0

README

demo-app

A small http UI echo server to use as a platform engineering example application. This listens with HTTP on port 8080 and can output various facts about the request and server. This is great for demonstrating:

  • Deployment lifecycle
  • Customisation of environment variables of files in the container
  • Customisation of container resources
  • Load-balancing between replicas
  • Autoscaling based on request rate
  • Demonstrating a Redis and/or Postgres connection

screenshot of demo-app

screenshot of demo-app with extra details

Docker image for Linux

docker pull ghcr.io/astromechza/demo-app:latest

Go binary

To install the binary into your own image or system, do the following and it should be available on $GOPATH/bin/demo-app.

go install github.com/astromechza/demo-app@latest

Options

The following flags are available and may also be set through the OVERRIDE_<flag uppercase> environment variables.

  -color string
    	the background color to display (default "random")
  -listen string
    	the address to listen on (default ":8080")
  -motd string
    	specify a message of the day, prefix with '@' to read from a file (default "Hello World")
  -postgres string
    	Optional postgres url 'postgres://<user>:<pass>@<host>:<port>/<database>'
  -proxy string
    	forward the request to the given http or https endpoint
  -redis string
    	Optional redis url 'redis://<user>:<pass>@<host>:<port>'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL