Sign inSign up

chentex/go-rest-api

By chentex

•Updated almost 8 years ago

Go RESTapi using hipchat example

Image
3

1M+

chentex/go-rest-api repository overview

⁠go-rest-api

Simple GOlang REST API example with HipChat Integration

Checkout the reposority

git clone https://github.com/chentex/go-rest-api.git

Go to the folder

cd go-rest-api/

⁠Run Application

To run the application, build application with

go build

The execute with

./go-rest-api

From a Browser try this URL

http://localhost:8080/test

⁠Build Image

To build the image with the application run

docker build -f Dockerfile . -t gorestapi:latest

To run the image execute

docker run --rm -p 8080:8080 gorestapi:latest

To the image try this URLs

http://localhost:8080/test

http://localhost:8080/hola/chentex

Tag summary

Content type

Image

Digest

Size

5.8 MB

Last updated

almost 8 years ago

docker pull chentex/go-rest-api