Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`