Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/virtyaluk/golang-simple-app
This repo contains the code samples for the Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT article.
https://github.com/virtyaluk/golang-simple-app
auth0 gin go golang jwt react
Last synced: 6 days ago
JSON representation
This repo contains the code samples for the Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT article.
- Host: GitHub
- URL: https://github.com/virtyaluk/golang-simple-app
- Owner: virtyaluk
- License: mit
- Created: 2018-06-05T23:38:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-20T19:11:48.000Z (over 6 years ago)
- Last Synced: 2024-12-16T03:43:10.748Z (8 days ago)
- Topics: auth0, gin, go, golang, jwt, react
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Web App in Go
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## :green_book: License
[Licensed under the MIT license.](https://github.com/virtyaluk/golang-simple-app/blob/master/LICENSE)
Copyright (c) 2018 Bohdan Shtepan
---
> [modern-dev.com](http://modern-dev.com) ·
> GitHub [@virtyaluk](https://github.com/virtyaluk) ·
> Twitter [@virtyaluk](https://twitter.com/virtyaluk)