/Golang-RestApi-JWT-Gin-SqlServer

Implement simple REST API with JWT authentication with Gin framework and SQL Server database

Primary LanguageGo

Simple REST API in Golang with JWT authentication & SQLServer

Untitled-1

Features

  • 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

Development Setup

Tools

  • Go version 1.18.2
  • SQLServer for Database
  • Gin Framework
  • Setting up Database with GORM
  • viper for enviroment configuration

Run Program

Run the following steps:

  1. git clone https://github.com/Golang-RestApi-JWT-Gin-SqlServer
  2. go install
  3. Create a database named GolangJWTDB in SQLServer
  4. go run main.go Run the app in Dev mode.