Public | Automated Build

Last pushed: 20 days ago
Short Description
A simple HTTP server that returns your public IP address
Full Description

go version of ifconfig.me




This was my first project using go, a simple HTTP server that returns your public IP address.
I keep using this project for demos and learning about Docker, Go and experiment some workflows.

Requirements

  • GO >=1.9 (otherwise the steps in this readme will not work)

Development

Run

go run app/main.go

Test

go test ./...

Create binary

Build / Compile

go build -o ifconfig.me app/main.go

Run

./ifconfig.me

Docker

  • Build
docker build -t ifconfig.me .
  • Run
docker run -p 8080:80 ifconfig.me

References

Docker Pull Command
Owner
patrickfmarques
Source Repository