/go-gin-jwt-auth-mysql

template for go gin jwt auth mysql based from medium article of Vinika Anthwal

Primary LanguageGo

go-gin-jwt-auth-mysql

template for go gin jwt auth mysql based from medium article of Vinika Anthwal

read this

https://medium.com/@22vinikaanthwal/register-login-api-with-jwt-authentication-in-golang-gin-740633e5707b

steps

  1. adjust .env to your local usr pw and tbl name
  2. run: go run main.go
  3. if there are errors, just follow the error message. it will tell you to install packages one by one
  4. once it runs, it will auto migrate the table so you can proceed to testing

git source

https://github.com/VinikaAnthwal/go-jwt