Home

Awesome

Public API builder

This is a Node.js application that builds the static files that powers the COVID Tracking Project API. It is built to run on Github Actions, but can be run anywhere.

In production, it writes files to the COVID Tracking public API repository.

The design principles of this project are:

Defined sources

The API currently provides the following sources:

External & Public

These are listed public endpoints:

Internal

These are public, but are intended only for use by the project website:

OpenAPI, Swagger, and GraphQL output

The project outputs an openapi.json file and a schema.graphql file for integrating with Swagger for documentation, and building a GraphQL server.

Development

Setting up

Once you have downloaded the repository, run npm install to install dependencies.

Environment variables

Running

Just use node index.js. The following command line arguments are supported:

Testing

The project uses Jest and a lot of mocks for node-fetch. To run, use: npm run test

Documentation

Checkout the doc pages in /docs

Important links