akmamun / go-jwt

Golang with JWT, Go Gin and MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User authentication in Golang with JWT, Go Gin and MongoDB

Golang backend application that uses JWT tokens for users

Locally Up

  • Setup your .env file, for example follow .env.example
  • To add all dependencies for a package in your module go get . in the current directory

Lets Run

  • go run main.go or go build main.go and run ./main
  • The application should be available and running on localhost:8000

Docker Run

  • Docker build docker build . -t server
  • Docker Run docker run -p 8000:8000 -it server

About

Golang with JWT, Go Gin and MongoDB


Languages

Language:Go 94.4%Language:Dockerfile 4.8%Language:Shell 0.9%