Skip to content

adsozuan/goswa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goswa

A simple go web application example for working out Go web stuffs

  • As simple as possible
  • No dependencies
  • No surprise
  • Extensible

Largely inspired by Mat Ryer videos on how he writes web API.

Build

make build

Will create an executable named server in bin/ folder.

With Docker:

./scripts/build_image.sh

An image named goswa will be build.

Run

make run

To test it:

curl localhost:8080?name=Dude

Deploy on K8S

Tested with minikube.

Make you docker client point to run in minikube environment with:

eval $(minikube docker-env)

Build your image:

./scripts/build_image.sh

Deploy it:

minikube kubectl -- apply -f build/package/deployment.yaml

About

go simple web application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published