Skip to content

mukundbhudia/covid-api

Repository files navigation

covid-api

GraphQuery API that serves Johns Hopkins CSSE data on covid-19. Uses Node, express, graphQL, mongoDB. This project works in conjunction with covid-web and covid-service.

Demo

A working demo of his API is available at https://covid19-dash-api2.herokuapp.com/. Use the GraphiQL web interface to explore the data structure and perform queries.

Prerequisites

  • Node v14.x.x
  • NPM v6.x.x
  • mongoDB v3.6.x (running with URI: 'mongodb://localhost:27017')
  • If running in dev mode copy the .env.example file to .env in the project directory and fill it out as needed.
  • covid-api needs covid-service to have run at least once.

Available Scripts

In the project directory, you can run:

npm run nm

Runs the server in the development mode using nodemon.
Open http://localhost:4000 to view it in the browser.

The project will reload if you make edits to the source code.

npm start

Runs the server in production mode from project directory .
Open http://localhost:4000 to view it in the browser.

Thanks