Skip to content
forked from Olaide-EO/API

API for Current cases and more stuff about COVID-19 or the Novel Coronavirus Strain

License

Notifications You must be signed in to change notification settings

elgohr-update/API

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Logo

DockerHub Downloads GitHub contributors ESLint Tests GitHub top language GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

Join our Server!

Discord server

API

API for Current cases and more stuff about COVID-19 or the Novel Coronavirus Strain.

Check out our homepage and sign up for our newsletter here

Recommended by Postman

NovelCovid API is recommended by Postman here

Documentation

NovelCovid/API Documentation can be found here

Installation

Redis

  1. Download redis from https://redis.io/topics/quickstart
  2. Start redis server using redis-server

Project

  1. Fork and clone git repository
  2. In root project folder, create a new file called config.json
  3. Copy contents for config.example.json to new config.json file
  4. Replace password field with "" and port field to whatever localhost port you want.
  5. From root of project, run npm run start:dev
  6. In your browser, go to localhost:{port} to test your local changes

Run with docker-compose.

  1. Fork and clone git repository
  2. In root project folder, make a new file called .env
  3. Copy contents for example.env to new .env file
  4. Replace password field with "yourpassword" or leave it blank, and port field same within docker-compose.yml.
  5. Replace redis host "localhost" with "redis".
  6. Run command npm run docker-start-dev.

NPM Package

Version Size Downloads

We suggest you load the module via require, considering ES modules in Node.js are not yet stable.

Executing a method will return a Promise. The examples here utilise async/await to access the data.

JavaScript:

const { NovelCovid } = require('novelcovid');

TypeScript:

import { NovelCovid } from 'novelcovid';

Methods

Everything is listed on the npm site.

Note

Since data.updated returns milliseconds, you can do new Date(data.updated) as it returns an ISO Date

You can read more about new Date() here

For further support, you can join our discord server! More Tutorials can be found there too! https://discord.gg/EvbMshU

Sources:

https://www.worldometers.info/coronavirus/

https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series

https://github.com/nytimes/covid-19-data

Contributors ✨

Thanks goes to these wonderful people (emoji key):


EliteDaMyth

πŸ’»

Ethan Winters

πŸ› πŸ’»

dicedtomato

πŸ’»

apollyon600

πŸ“–

James Shelley

πŸ‘€

Ryan Harlow

πŸ›

Ali Tas

πŸ›

Walter Corrales

πŸ’»

Ahmad Awais ⚑️

πŸ“–

MrAugu

πŸ›

Ayyan Lewis

πŸ›

Ben Sommer

πŸ› πŸ’»

Luis De Anda

πŸ“–

puf17640

πŸ› πŸ’»

Oluka Denis

πŸ›

Showcases (Awesome-NovelCOVID)

Did you build a project with our API? We now offer an "awesome-list" for you to add your projects into so people can find out about them!

You can find it here.

Donating

Buy Me A Coffee

License

FOSSA Status

About

API for Current cases and more stuff about COVID-19 or the Novel Coronavirus Strain

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.5%
  • EJS 9.3%
  • CSS 7.1%
  • Dockerfile 0.1%