Skip to content
/ jwt-gin Public

Implementation of JWT(JSON Web Token) Authentication using Gin as the web framework and GORM as the ORM

Notifications You must be signed in to change notification settings

jos-h/jwt-gin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT Authentication in Golang using Gin and Gorm

This repository contains working example of implementing JWT(JSON Web Token) Authentication in Golang using Gin as the webframework and GORM as the ORM

Features

  • User Registration
  • User Login and JWT token generation
  • Authenticated routes using JWT middleware

Requirements

Installation

  • Clone the repository from the terminal using git clone https://github.com/jos-h/jwt-gin.git
  • Navigate to the project directory
  • Install dependencies by running go mod tidy
  • Setup your database and provide the database connections strings in the .env(Create a .env file locally inside the project directory)
  • Run the application by running go run main.go

About

Implementation of JWT(JSON Web Token) Authentication using Gin as the web framework and GORM as the ORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages