gorilla-tutorial-2

command module
v0.0.0-...-ab5d082 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2015 License: MIT Imports: 6 Imported by: 0

README

##Go/Gorilla for MEAN Stack developers part 2: Handlers and middleware

This is the code from the examples in my tutorial on learning about Handlers and middleware chaining in Go/Gorilla from Express.js, which you can go get with go get github.com/AndyHaskell/gorilla-tutorial-2. The code is available in both Go and JavaScript.

To run the Go version of the server, run go get github.com/gorilla/handlers if you don't have the Gorilla handlers package and go get github.com/justinas/alice if you don't have Alice and then from this directory run go install and gorilla-tutorial-2. The server listens on port 1123.

To run the Node version, from this directory run npm install and then run node server.js. The server listens on port 1123.

###Image credits

  • The picture of the sloth is from Stefan Laube from Wikipedia and the picture is public domain.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL