Sample implementation of 3rd-party server authenticating ReadMe Developer Hub using the ReadMe auth node package
$ ./build_me.sh
This installs npm dependencies, transpiles JS, & copies over *.jade templates to from src/
to /dist
.
- Set the
README_PROJECT_URL
env variable in.env
based on your ReadMe project's URL. Usually something likemyproject.readme.io
- Set the
README_PROJECT_SECRET
env variable in.env
based on your ReadMe project's secret in the admin dashboard - Start
readme-auth-example
's server with
```
$ ./run_me.sh
```
This starts the node express server on port 8080
- Go to http://localhost:8080
- Click Login button and login with credentials: - email: owlbert@readme.io - password: 0wlb3r7
- Click
/docs
link and clickGo to ReadMe Docs
button - You will now be logged in to your ReadMe developer hub with the user from this project!