Categorygithub.com/oinume/go-oauth2-client-sample
repositorypackage
0.0.0-20210625224305-d7036f400347
Repository: https://github.com/oinume/go-oauth2-client-sample.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

CI

go-oauth2-client-sample

Simple OAuth2 client implementation in Go. See following articles for details.

Requirements

  • Go 1.10 or later
  • make

How to build binary

make build

How to run

cp .env.sample .env

Edit .env with your CLIENT_ID and CLIENT_SECRET from Google APIs.

And then run the server.

source .env
make run

You can access to http://localhost:2345 with a web browser after executing the command.

Change PORT on .env if you want to change listening port.