This repository contains a small nodejs/express app using Githubs public search endpoints for listing most starred endpoints.
Heres the link for deployed example working on google cloud app engine standard
Install dependencies using, npm install
, then you can directly start api in local environment.
npm start
App is starting with swagger ui so you can directly use it to invoke calls to api, from http://localhost:8080/api-docs/
Github API has a rate-limit of 10 searches if unauthorized and 30 if using authorization. You can add authorization if you app envrionment variables GITHUB_TOKEN
for Oauth or GITHUB_USER
/ GITHUB_PASS
couple for basic auth.
for running tests, use:
npm run test
for checking linting, use:
npm run lint
- adding throttling to handle rate limit gracefully
- adding distrubuted cache layer for scaling
- deployment automation