This repo is inspired by this post. Basically I'm going to create a full-fledged go web server without the use of any existing frameworks (echo, gin, revel, iris, etc.). I will be using the gorilla/mux package, because it is not a framework, just a collection of packages that helps extend the net/http package; additionally, I'm using negroni for middleware and bolt for storage.
This repo is also a part of a docker related tutorial that I'm currently writing. (I will post the actual article when it's done)
This application is available via docker hub.
Simply run:
docker pull gregtandiono/basic-go-server
and
docker run -it -p 8080:8080 gregtandiono/basic-go-server
if you want to run it on detached mode, simply run:
docker run -d -p 8080:8080 gregtandiono/basic-go-server
The commands above will bind exposed port of 8080 to localhost:8080.
Priority
- Create a User Model
- Create a User route handler
- Setup Bolt DB to store users
- Write tests for each of the routes