Small demo app which provides a tiny web app displaying a Pokemon. Used for demonstration purposes.
410
This web app is used as a demo application which brings up a HTTP service with some Pokemon content.
The actual content can be influenced by an environment variable, a command line flag or the hostname.
# Build binary
go build .
# Use the hostname to pick a pseudo-random pokemon
pokesrv
# Bypassing the randomness with an environment variable
POKEMON=gengar pokesrv
# Bypoassing the randomness with a command line parameter
pokesrv -pokemon pikachu
# Just run this through Docker
docker run -d -p 8080:8080 tolleiv/pokesrv
The app makes use of other projects. The Gin HTTP wrapper is used to provide the HTTP parser, The Pokemon Hollow font is used along with the great data from the PokeAPI project.
MIT License
Content type
Image
Digest
Size
265.6 MB
Last updated
almost 10 years ago
docker pull tolleiv/pokesrv