https://github.com/rusty1s/koa2-rest-api
ES6 RESTFul Koa2 API with Mongoose and OAuth2
https://github.com/rusty1s/koa2-rest-api
Last synced: 5 months ago
JSON representation
ES6 RESTFul Koa2 API with Mongoose and OAuth2
- Host: GitHub
- URL: https://github.com/rusty1s/koa2-rest-api
- Owner: rusty1s
- License: mit
- Created: 2016-01-29T13:21:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-15T10:38:14.000Z (almost 10 years ago)
- Last Synced: 2025-08-01T18:08:13.934Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 43.9 KB
- Stars: 75
- Watchers: 7
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Starter project for an ES6 RESTFul Koa2 API with Mongoose and OAuth2
currently in development...
## OAuth2 Provider
You need to create a `provider.js` file in `server/auth` and add your oAuth2 provider credentials, like:
```js
'use strict';
export const facebook = {
clientId: YOUR_CLIENT_ID,
clientSecret: YOUR_CLIENT_SECRET,
route: '/auth/facebook',
callbackRoute: '/auth/facebook/callback',
};
```