team-NewsClick / covid19-charts

Covid-19 Charts

Home Page:https://viz.newsclick.in/covid19-cases-graphs-maps-india-world

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Covid19-Charts

Netlify Status

This project is a live and customizable version of Newsclick's COVID-19 trajectory Charts and Maps

Environment Variables

Place the environment variables in .env file in the root of the project folder. Please refer .env.example for example.

Following are the environment variables used in the project:

  • API_URL_COUNTRY: Country wise daily stats in csv
  • API_URL_STATE: State wise daily stats in csv
  • API_URL_CITY: City wise daily stats in csv
  • API_URL_STATE_VACCINES: State wise daily stats for vaccine in csv
  • API_URL_COVIDSUMMARY: Summarised stats for India and World with time stamp in json
  • API_URL_STATES_GEOJSON: States and UTs geojson
  • API_URL_DISTRICTS_GEOJSON: Districts geojson
  • API_URL_STATE_COVID_JSON: Latest covid stats for every state
  • API_URL_DISTRICT_COVID_JSON: Latest covid stats for every district
  • MAPBOX_BOX_ACCESS_TOKEN: This can be obtained by signing in to Mapbox.

Getting Started

  • First, install all the node_modules

    npm install
    #or
    yarn install
  • Secondly, run the development server:

    npm run dev
    # or
    yarn dev

To get COVID-19 article open http://localhost:9000/covid19-cases-graphs-maps-india-world from the browser to see the result.

Deployement

While deploying on netlify:

  • Publish directory ahould be .next.
  • Provide environment variable on netlify.

Please refer to the Netlify Blog post for more information

License

AGPL-3.0 License

About

Covid-19 Charts

https://viz.newsclick.in/covid19-cases-graphs-maps-india-world

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 96.0%Language:CSS 4.0%