Skip to content

akmamun/go-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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