- Node 11.14+ (
fs.promises
)
- Inside the root of the project (not this example directory), install its dependencies and link the library sources
globally:
yarn yarn link
- Now move into this example directory, install its deps, and complete the link so the node server uses the sources
locally:
cd examples/generic/ yarn yarn link netlify-cms-oauth-provider-node
- Create a
.env
file in this directory with the following contents, filling inOAUTH_CLIENT_ID
andOAUTH_CLIENT_SECRET
with your GitHub OAuth app's ID and secret.DEBUG=netlify-cms-oauth-provider-node* NODE_ENV=development HOSTNAME=localhost PORT=3000 OAUTH_CLIENT_ID= OAUTH_CLIENT_SECRET=
- If you've forked this repository, update
config.yml
with your repo. Otherwise you will be in a read-only mode OR the login will fail since you (probably) won't have write access to this package's repository. - Run the dev server:
yarn start
- Visit the local dev server at
http://localhost:3000