Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akmamun/go-jwt
Golang with JWT, Go Gin and MongoDB
https://github.com/akmamun/go-jwt
dockerized gin golang jwt jwt-authentication mongodb
Last synced: 29 days ago
JSON representation
Golang with JWT, Go Gin and MongoDB
- Host: GitHub
- URL: https://github.com/akmamun/go-jwt
- Owner: akmamun
- Created: 2021-09-22T05:54:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T04:44:20.000Z (over 1 year ago)
- Last Synced: 2024-10-02T09:13:52.741Z (about 1 month ago)
- Topics: dockerized, gin, golang, jwt, jwt-authentication, mongodb
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 14
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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`