Giter Site home page Giter Site logo

sridharcool0005 / covid19-india-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hrithikmittal/covid19-india-api

0.0 1.0 0.0 42 KB

This repo is created to get all the details of COVID-19 in India. These API will help to get the details of states in India. https://covid19-india-adhikansh.herokuapp.com/

Home Page: https://hrithikmittal.github.io/COVID19-India-API/

License: MIT License

JavaScript 100.00%

covid19-india-api's Introduction

COVID19-India-API

https://covid19-india-adhikansh.herokuapp.com/summary

This repo is created to get all the details of COVID-19 in India. These API will help to get the details of states in India. The routes for the API are mentioned below:

Prerequisites

To work with the api you must have to install the following:

  • NodeJS - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
  • MongoDB Server - NoSql Database and server
  • Postman - API development environment

Installation

Before doing anything you have to clone or download and unzip the project folder, open terminal and navigate to the project folder and run:

npm install

This will install all the dependencies required by the project.

Getting Started

To start using this API, start your local database server, open terminal and navigate to the project folder and run:

npm run start

If an error occur, check your database server or check if you have installed the prerequisites correctly.

If there was no error, open Postman and create and send a new get request to:

http://localhost:3000/

Expected Output:

{
	message: "Welcome!"
}

Response

{
  name:'name_of_state',
  confirmedNational:'Total Confirmed cases (Indian National)',
  confirmedInternational:'Total Confirmed cases ( Foreign National )',
  cured:'Cured/Discharged/Migrated',
  death:'Death',
  total:'Total Cases'
}

Routes

S.No. Route Method Description
1. / GET Welcome to APIs
2. /summary GET Total data containing deaths and cases in India
3. /states GET Total data of all states
4. /state/:statename GET Get state details
5. /latest GET Get Latest Data with Comparision of previous date

Deployment click me

This api can be hosted on platform like heroku, aws, and others. MongoDB Atlas or Matlab can be used for remote database.
For instance, the application can be deployed on Heroku by creating and registering an account. Following, create a new app and choose a deployment method (terminal or github) and follow the instruction there. Remote database can be created using Mongodb Atlas or Matlab.
For Mongodb Atlas, you need to just to create your account and make a new cluster and link the cluster to your application through a URL. Following the given steps, you would have a remote application up and running.

Data Source

This is the source of data for the APIs. This data is officially provide by the Govt. of India.

Language Wrappers Available

Contributing contributions welcome

If you are the helping and contributing one, your efforts and suggestion are always welcomed.

covid19-india-api's People

Contributors

hrithikmittal avatar abhinavmir avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.