Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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)