website : http://api.daktary.com
For requests using Basic Authentication or OAuth, you can make up to 5,000 requests per hour.
For unauthenticated requests, the rate limit allows you to make up to 60 requests per hour. - Github
Read Github instructions to understand the rate limit policies :
rate-limit-for-oauth-applications
Install:
Start with creating an app
$ heroku login
$ heroku create
Now you can specify your token (cf. Github - Rate limit policies)
$ heroku config:get GITHUB_ID=xxxx
$ heroku config:get GITHUB_SECRET=yyyy
$ touch .env
$ heroku config:get GITHUB_ID -s >> .env
$ heroku config:get GITHUB_SECRET -s >> .env
npm run start
Then http://localhost:5000
It runs with nodemon and foreman whose watch the modification to restart on change.
We use http://mochajs.org and http://chaijs.com for managing our unit-tests.
npm test
In test folder, you can get the autonomous page : api_test_html
You can open it in your favorite browser. It try to play with the local or distant API.
We use standardjs as linter.
npm run lint
In your console, you can try :
fetch('http://api.daktary.com/daktary-team/api.daktary.com/blob/master/README.md')
.then(rep => rep.json())
.then(json => console.log(json))
fetch('http://api.daktary.com/daktary-team/api.daktary.com/tree/master/test')
.then(rep => rep.json())
.then(json => console.log(json))
See the home to see all possibilities : http://api.daktary.com
MIT
- cf. Generator
- supertest
- Restify vs express
- uglify
- README : https://codeburst.io/good-code-vs-bad-code-35624b4e91bc
- dist-src folders