An OAuth2 API implemented in Node and Express. Tests written with Mocha.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
src
test/integration/api
.dockerignore
.eslintrc
.gitignore
Dockerfile
package-lock.json
package.json
readme.md
yarn.lock

readme.md

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.

OAuth Grants

The server accepts the following OAuth2 grants:

  • client_credentials
  • authorizaion_code
  • password
  • implicit
  • refresh_token

Installation and running

  • First run yarn to 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 test.json file.
  • Run yarn test to check the tests are passing.
  • Optionally run yarn seed:dev to seed the development database.
  • run yarn start:dev to start the development server.