/ncov

serverless coronavirus graphql api built in typescript

Primary LanguageTypeScriptMIT LicenseMIT

nCoV


🚀 COVID-19 meets GraphQL
A GraphQL Server on top of the coronavirus data provided by worldometers.info

Playground 👉 api.ncov.co.za

Features

  • Statistics: View up to date global statistics on COVID-19 cases.
  • Countries: View up to date statistics on COVID-19 cases for all countries.
  • Country: View up to date statistics on COVID-19 cases by country code.

Requirements

You need to have the Serverless installed to run the application locally or deploy it to your own AWS account:

npm install -g serverless

Getting started

# 1. Install project dependencies with yarn
yarn

# 3. Start server (runs on http://localhost:3000) and open GraphQL Playground
yarn start

Documentation

Commands

  • yarn start starts GraphQL server on http://localhost:3000 and opens GraphQL Playground

  • yarn deploy deploys application to AWS Lambda via serverless

TODO

  • Extract overall active cases data.
  • Extract overll closed cases data.
  • Extract last updated time.