Skip to content

avoidik/snippetbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo Go Application

This is the demo application which was developed throughout Alex Edwards Let's Go book with minor changes

  • sqlite3 instead of mysql
  • database initialization using transactions
  • console interrupts and graceful shutdown support
  • alice for middleware chains
  • glide dependecies manager
  • additional checks for command-line parameters

How to run

git clone https://github.com/avoidik/snippetbox
cd snippetbox
go run $GOROOT/src/crypto/tls/generate_cert.go --rsa-bits=2048 --host=localhost
go run cmd/web/*

Useful links

Alex Edwards blog https://www.alexedwards.net/blog/

Go Basics http://openmymind.net/The-Little-Go-Book/

Pat - muxer https://github.com/bmizerany/pat

Bone - muxer https://github.com/go-zoo/bone

Gorilla - muxer https://github.com/gorilla/mux

Gorilla - sessions https://github.com/gorilla/sessions

SCS - sessions https://github.com/alexedwards/scs

Alice - middleware chaining https://github.com/justinas/alice

Nosurf - CSRF protection middleware https://github.com/justinas/nosurf

Gorilla - CSRF protection middleware https://github.com/gorilla/csrf

About

snippets sharing application (tutorial)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published