This is a dump of some of the things we did to setup practice libaray on my github working along side netlify
- created
static/admin
folder - added 2 files
index.html
andconfig.toml
- setup the backend to connect using
github
. - On github repo created a new OAuth app and held the secret and client id for the next step
- on netlify, created a new app.
- On new app go to
settings/Access Control
and add a GitHub OAuth with the secret and client id from above step - Add script tag's login widget to
admin/index.html
head and also to the end of the<body>
in the generated doc site. NOTE - not 100% sure if this is needed or what it does. Think it's the dialog for the login page, but dunno if we need it on the generated site's html.
-
setup the backend to connect using
git-gateway
inconfig.toml
. -
TODO - Add roles in there too ???
-
on netlify, created a new app.
-
On new app go to
settings/Identity
and add a GitHub external provider -
CLICK THE ENABLE GATEWAY BUTTON !!!
-
Add script tag's login widget to
admin/index.html
head and also to the end of the<body>
in the generated doc site. NOTE - not 100% sure if this is needed or what it does. Think it's the dialog for the login page, but dunno if we need it on the generated site's html. -
build and deploy - created a
netlify.toml
config file -
added some build env vars specific for prod and non-prod to use the latest version of hugo.
-
added a
build.sh
file to be executed by the build system and wired it to thenetlify.toml
config. This gives a hook for running our builds / tests etc.