Skip to content
/ go-for-it Public template

Demo web-application with Sign-up, Sign In implementation using session, cookie based authentication

Notifications You must be signed in to change notification settings

tans105/go-for-it

Repository files navigation

go-for-it

Simple web-application with Sign-up, Sign In implementation using session, cookie based authentication built on Go(Golang).

Setting it up

  • Setup golang on local (https://golang.org/doc/install)
  • Once setup, clone the repo
  • Go to clone directory
  • Install 3rd party dependencies
    • go get golang.org/x/crypto/bcrypt
    • go get github.com/jinzhu/gorm/dialects/postgres
    • go get github.com/jinzhu/gorm
    • go get github.com/satori/go.uuid
  • Run go build. This will generate an executable file with name go-for-it.
  • Run the executable
    • Linux/Mac ./go-for-it
    • Windows cmd /K "go-for-it.exe"

Pre-requisite

Features

v1.0

  • Sign up page ( with basic server-side validations )
  • Sign in page ( with basic server-side validations )
  • Logout implementation
  • Barebone home page ( to be worked on the next release )
  • Cookie & session-based authentication
  • Database integration using Gorm ORM with Postgres ( can be used with any other vendor )
  • Storage of user and session details in the database and its retrieval at time of login
  • Password encryption and verification using bcrypt

Screenshots

image

image

image