A simple REST API built using Node.js that combines data from two third-party APIs that prioritizes effiency, simplicity and accuracy for the caller.
Responds with data that can be used to analyze a correlation between indicators such as C02 intensity and risk of infection/risk of death due to Covid-19 to provide inference on issues. Configurable by user for type of indicator they want to use.
Coming soon.
Uses a firestone realtime database to cache responses to calls, with the goal of greatly improving the respose time of this API as well as the heavy cost of calling the Carbon Intensity API.
- express version 4.18.2
- nodemon version 3.0.1
- firebase-admin version 11.10.1
- moment version 2.29.4
- Download Node.JS version 12 or later, and clone/download this repository.
- Install the dependencies with the
npm install
command. - Add your own serviceAccount.json for use of firebase realtime database.
- Run with the
npm start
command.