Public | Automated Build

Last pushed: 2 years ago
Short Description
Go Present with my slide deck
Full Description

Build & Run

Run locally:

Pre-requisite:

Run:

go run *.go

In alternative:
go build && ./slack-tube-service

Access:

Just connect to localhost:1123

Run within Docker container

Pre-requisite:

Build:

docker build -t slack-tube-service .

Run:

docker run -it --rm --name slack-tube-service -p 1123:1123 slack-tube-service

Access:

If docker daemon is running on localhost

Just connect to localhost:1123

If using docker machine

Find out your IP: docker-machine ip `docker-machine active`
Connect to that IP, port 1123.

APIs

  • GET /api/tubeservice/ -> retrieve status for all the lines
  • GET /api/tubeservice/{line} -> retrieve status for a specific line (e.g. GET /api/tubeservice/Bakerloo)
Docker Pull Command
Owner
thoeni
Source Repository

Comments (0)