golang-gin

Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT

Github stars Tracking Chart

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 article.

Setup

  1. Update the main.go file with your Auth0 Credentials. Sign up 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.
  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

License

This project is licensed under the MIT license. See the LICENSE file for more info.

Main metrics

Overview
Name With Ownercodehakase/golang-gin
Primary LanguageJavaScript
Program languageGo (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2018-04-19 23:09:39
Pushed At2021-04-17 06:37:51
Last Commit At2018-04-28 15:34:02
Release Count0
用户参与
Stargazers Count185
Watchers Count6
Fork Count65
Commits Count4
Has Issues Enabled
Issues Count8
Issue Open Count5
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count2
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private