Sign inSign up

tolleiv/pokesrv

By tolleiv

•Updated almost 10 years ago

Small demo app which provides a tiny web app displaying a Pokemon. Used for demonstration purposes.

Image
0

410

tolleiv/pokesrv repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

265.6 MB

Last updated

almost 10 years ago

docker pull tolleiv/pokesrv