/jwt-mysql-auth

Jwt Auth using mysql in Gin-Gonic.

Primary LanguageGo

Auth using JWT and MySql in Gin-Gonic.

1. Clone the repo

git clone git@github.com:parikshitg/jwt-mysql-auth.git

2. Build

go build

3. Go Get the missing packages

go get 

4. Run

./jwt-mysql-auth

Directory Structure

handlers

This directory consist all the handlers code of the website. There are 4 handlers Login, Register, Logout & Welcome.

Models

This consists of nysql functions.

Static

This consists of static files (css/js/images).

Views

This consists of all the html template files.