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.
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.
- 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.
In the project directory, you can run:
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.
Runs the server in production mode from project directory .
Open http://localhost:4000 to view it in the browser.
- To Johns Hopkins CSSE for the hard work providing and collating the data.
- To Salomão Rodrigues for helping me to start up the project.