Skip to content

golovers/restapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Writing REST API with Golang

Running Examples

go run main.go

Deploy to private Docker and Kubernetes (Minikube)

go build -o my-rest.bin
docker build -t 192.168.98.100:5000/my-rest:latest .
docker push 192.168.98.100:5000/my-rest:latest

kubectl run my-rest --image=192.168.98.100:5000/my-rest:latest --port=8080
kubectl expose deployment my-rest --type=LoadBalancer

Test

minikube service my-rest

More example at The New Stack article and its code repository here

About

REST API example written in Golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages