app-json-fetcher
A CORS-friendly webservice (and node module) for fetching app.json file content from GitHub and Bitbucket repos
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install app-json-fetcher --save
Run it as a service
git clone https://github.com/app-json/app-json-fetchernpm installnpm start
Use it programatically
npm install app-json-fetcher --save
var fetch = fetch // Github shorthand // Bitbucket shorthand // Long URL with branch or commit
Sample endpoints
- https://app-json-fetcher.herokuapp.com/?repository=github:zeke/slideshow
- https://app-json-fetcher.herokuapp.com/?repository=bitbucket:sikelianos/web-starter-kit
- https://app-json-fetcher.herokuapp.com/?repository=https://github.com/zeke/slideshow/tree/master/app.json
Tests
npm installnpm test
License
MIT