This is just a really quick guide how to integrate Github's OAuth with Express and Express Session.
git clone https://github.com/krystian-mw/express-github-oauth
cd express-github-oauth
yarn
- Fill in
.env
as presented by.env.sample
yarn start
for demoyarn dev
for dev
P.S. Sorry for the really rough frontend. This is not up to my standards in any way, it's just for demo purposes.
After step 4. from usage, run yarn add cross-env
and change scripts
in package.json
to:
"scripts": {
"dev": "cross-env NODE_ENV=development nodemon app.js -w app.js -w routes -w models",
"start": "cross-env NODE_ENV=production node app"
},