https://github.com/codehakase/golang-gin
Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT
https://github.com/codehakase/golang-gin
auth0 gin-gonic go golang javascript react
Last synced: 4 months ago
JSON representation
Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT
- Host: GitHub
- URL: https://github.com/codehakase/golang-gin
- Owner: codehakase
- License: mit
- Created: 2018-04-19T23:09:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-17T06:37:51.000Z (over 4 years ago)
- Last Synced: 2025-06-14T23:43:55.902Z (4 months ago)
- Topics: auth0, gin-gonic, go, golang, javascript, react
- Language: JavaScript
- Size: 7.81 KB
- Stars: 185
- Watchers: 6
- Forks: 65
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT
This repo contains the code samples for the [Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT ](https://hakaselogs.me/2018-04-20/building-a-web-app-with-go-gin-and-react) article.
## Setup
1. Update the `main.go` file with your Auth0 Credentials. [Sign up](https://auth0.com) for an account for free if you don't have one.
2. Update the `views/app.jsx` file with your Auth0 Credentials.
3. Add `http://localhost:3000` to your Allowed Callback, and Allowed Logout URL's in your [Auth0 Management Dashboard](https://manage.auth0.com).
4. Run `mv .env.sample .env` and update with valid credentials
5. Source the environment variables - `source .env`
6. Update dependencies `go get`
7. Launch the application by running `go run main.go`
8. Navigate to `localhost:3000` to view the application## Author
[Francis Sunday](https://twitter.com/codehakase)## License
This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.