Based on the Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT article, Implemented the example of Go back-end and React front-end. It's THE JUST PROTOTYPE OF JWT Token management in go and react.
- Run
mv .env.sample .env
and update with valid credentials.
export USER_ID="admin"
export USER_PASSWORD="14123123"
- Source the environment variables -
source .env
- Pull the dependencies.
$ go mod init
$ go get
- Run the project
$ go run main.go
This project is licensed under the MIT license. See the LICENSE file for more info.
My colleagues, bkmoon318 and DooSikChoi.