Giter Club home page Giter Club logo

Comments (3)

denven avatar denven commented on June 27, 2024

Hi, Aaron

It depends ON how to run or deploy the site.
I deploy it ON AWS EC2, so I start a crontab task in bash Shell to run the scripts in /script directory to update data
if you deploy it by github action, you can use workflows to do the same thing.

If you want to use new maps, you need get the geo json file of the country/place, search echarts-countries from github.

from covid-19-statistics.

aaron2181 avatar aaron2181 commented on June 27, 2024

Thanks, Deven

I only want to change Canada to Ghana and the news section to be centered on Africa.
I am new to geo json your help or guidelines would be highly appreciated.

from covid-19-statistics.

denven avatar denven commented on June 27, 2024

Thanks, Deven

I only want to change Canada to Ghana and the news section to be centered on Africa.
I am new to geo json your help or guidelines would be highly appreciated.
For replace a new map:
What you need to do before deployment:
1、download https://raw.githubusercontent.com/pissang/starbucks/gh-pages/json/Ghana.json and put it into public/assets/
2、take a look at the code and add new component for your map, modify related code such as router/link etc.
3、Find data source from wiki or CDC of your country, write your own scraper script (take a look at the scripts in /scripts directory, or emplement a seperate backend.
4、read and pass the data to your component, Overall.js etc.

For fetching news from your country, check api: get your own API key

from covid-19-statistics.

Related Issues (2)

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.