- Implementing REST API in Golang with JWT authentication & SQLServer
- User Registration & Password Hashing
- Authentication Middleware to Valid JWTs
- Gin Routing & Grouping
- Testing Golang API with VSCode REST Client
- Go version 1.18.2
- SQLServer for Database
- Gin Framework
- Setting up Database with GORM
- viper for enviroment configuration
Run the following steps:
- git clone
https://github.com/Golang-RestApi-JWT-Gin-SqlServer
go install
- Create a database named
GolangJWTDB
in SQLServer go run main.go
Run the app in Dev mode.