Skip to content

initialcapacity/oauth-starter

Repository files navigation

OAuth starter

Build results codecov

An application continuum style example using Golang that includes an OAuth 2 server with PKCE support.

Getting Started

Install the following prerequisites.

Build golang binaries with Pack.

pack build oauth-starter --builder heroku/buildpacks:20

Build and pack the frontend app with NPM.

cd web
npm run build
npm run pack
cd -

Run with docker compose.

docker-compose up

Development

Generate private and public keys.

openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -pubout -outform PEM -out public.pem

That's a wrap for now.