Skip to content

andyhaskell/gorilla-tutorial-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##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.

About

Source code from the examples in my tutorial on learning HTTP middleware in Go/Gorilla from Express.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors