Skip to content

anajuliabit/covid-graphql-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covid GraphQL API

GraphQL API for current cases about COVID-19 worldwide.

  • This project is a Concept Proof to test graphql usage in Typescript.
  • I used TypeORM to map the objects and TypegraqhQL to facilitate the manipulation of the schemas.
  • All communication with this API is done by Apollo Server.

Installation

  • Run yarn
  • Run yarn start

Usage example

Go to http://localhost:3000/playground (optional: set the port on enviromnent variables )

{
  countries {
    id
    name
    cases
    todayCases
    deaths
    todayDeaths
    recovered
    active

  }
}

Voyager

You can see GraphQL API as an interactive graph http://localhost:3000/voyager (optional: set the port on enviromnent variables )

Todo

  • Order by cases

Data source

The used API to extract data was developed by WorldOMeters

About

🦠 GraphQL API for current cases about COVID-19.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •