Public | Automated Build

Last pushed: 10 months ago
Short Description
Small demo app which provides a tiny web app displaying a Pokemon. Used for demonstration purposes.
Full Description

Pokesrv demo app.

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.

Usage

# 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

References

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.

License

MIT License

Docker Pull Command
Owner
tolleiv
Source Repository

Comments (0)