Node OAuth2 API
An OAuth2 API implemented in Node and Express. Tests written with Mocha.
Get set up building restful JSON APIs secured with OAuth2.
The server accepts the following OAuth2 grants:
Installation and running
- First run
yarnto install dependencies.
- Have Mongo installed on your machine, or use a cloud provider like mlab.
- Enter your config settings in
/config, in particular you will need your mongo database url. If you want a different database for testing then create a
yarn testto check the tests are passing.
- Optionally run
yarn seed:devto seed the development database.
yarn start:devto start the development server.