Skip to content

bajro17/golang-session-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple golang session authentication with mysql and gorilla sessions

  1. Clone or download this repo.
  2. Open console
  3. Type: go get github.com/gorilla/sessions
  4. go get golang.org/x/crypto/bcrypt
  5. go get github.com/jinzhu/gorm/dialects/mysql
  6. go get github.com/gorilla/mux
  7. go get github.com/jinzhu/gorm
  8. Make database and crate table for users
  9. go run main.go
  10. oepn browser and test it on localhost:9000/register

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published