Skip to content

A simple Go web server. This is a project that is a part of a docker-related tutorial I'm currently writing. Stay tuned!

Notifications You must be signed in to change notification settings

gregtandiono/go-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6d1adc6 · Sep 20, 2017

History

23 Commits
Sep 20, 2017
Aug 23, 2017
Sep 20, 2017
Sep 20, 2017
Aug 23, 2017
Sep 20, 2017
Sep 20, 2017
Aug 28, 2017
Aug 28, 2017
Aug 23, 2017
Aug 28, 2017
Aug 28, 2017

Repository files navigation

Go Web Server

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)

Docker

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.

Todos

Priority

  • Create a User Model
  • Create a User route handler
  • Setup Bolt DB to store users
  • Write tests for each of the routes

About

A simple Go web server. This is a project that is a part of a docker-related tutorial I'm currently writing. Stay tuned!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages