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
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/*
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