an api project to understand restapis in go and jwt authentication using cookies
curl http://localhost:3000/signup
To run this project, you will need to add the following environment variables to your .env file
DB
SECRET
(for jwt)
PORT
(3000)
Install jwt-go with go get
go get github.com/Roygebrayel/jwt-get
cd jwt-go
Server: Go , GORM , Gin , jwt-go , Bcrypt
GORM : GORM
GIN : [GIN] (https://gin-gonic.com/)
JWT : [JWT] (https://github.com/golang-jwt/jwt)
Dotenv : [Dotenv] (https://github.com/joho/godotenv)
compiler daemon : [daemon] (https://github.com/githubnemo/CompilerDaemon)
Bcrypt : [Bcrypt] (https://pkg.go.dev/golang.org/x/crypto/bcrypt)