Manage our firebase fetch-proxy-cache
project, which returns the results of calls to 3rd-party APIs, ensuring they're fetched and stored as they go stale.
Install firebase's tools globally:
$ npm install --global firebase-tools
Install cloud functions dependencies locally:
$ cd functions
$ npm install
Read the getting started guide for working with cloud functions.
Don't have access to the project on firebase? Email Colin Gourlay with the Google account you would like associated with the project.
The client/
directory of this project contains the source for a simple XHR-based client for the API, which is published to npm as @abcnews/fetch-proxy-cache-client
. Have a look in example.js
for usage examples.