{"id":18727062,"url":"https://github.com/607011/covid-19","last_synced_at":"2025-04-12T16:32:07.223Z","repository":{"id":42283081,"uuid":"250798903","full_name":"607011/COVID-19","owner":"607011","description":"Web application to visualize spread of SARS-CoV-2","archived":false,"fork":false,"pushed_at":"2023-01-07T16:39:08.000Z","size":4155,"stargazers_count":4,"open_issues_count":15,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T11:02:12.007Z","etag":null,"topics":["covid-19","javascript","json-files","mobile-web","novel-coronavirus","python","sars-cov-2","visualization","web","webapp"],"latest_commit_sha":null,"homepage":"https://covid-19.ersatzworld.net/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/607011.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-28T13:14:08.000Z","updated_at":"2023-01-02T06:32:24.000Z","dependencies_parsed_at":"2023-02-07T16:16:18.143Z","dependency_job_id":null,"html_url":"https://github.com/607011/COVID-19","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/607011%2FCOVID-19","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/607011%2FCOVID-19/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/607011%2FCOVID-19/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/607011%2FCOVID-19/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/607011","download_url":"https://codeload.github.com/607011/COVID-19/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248596590,"owners_count":21130726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["covid-19","javascript","json-files","mobile-web","novel-coronavirus","python","sars-cov-2","visualization","web","webapp"],"created_at":"2024-11-07T14:16:20.092Z","updated_at":"2025-04-12T16:32:04.829Z","avatar_url":"https://github.com/607011.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COVID-19\n\n_Visualization of COVID-19 spread and predicted cases_\n\n![COVID-19 web app](webapp-preview.png)\n\n## Prerequisites\n\n - Node.js ≥ 10\n - Git ≥ 1.8\n - Python ≥ 3.6\n - a web server which can serve static files (no PHP or other server-side logic required)\n\n## Installation\n\nThe [code](https://github.com/ola-ct/COVID-19) for this web app is hosted on GitHub. To clone the repository and its submodules enter the following on a command-line:\n\n```\ngit clone https://github.com/ola-ct/COVID-19.git\ncd COVID-19\ngit submodule init\n```\n\n## Deployment\n\nThe latest COVID-19 spread data is fetched from Johns Hopkins' Center for Systems Science and Engineering ([CSSE](https://coronavirus.jhu.edu/map.html)) [repository](https://github.com/CSSEGISandData/COVID-19). Type\n\n```\ngit submodule update --remote\n```\n\nto update the data residing in the two Git submodules.\n\nBefore deploying this app to a web server, some JSON files have to be generated from this data using bin/update-data.py. This script has some dependencies which you can resolve by executing\n\n```\npip3 install pipenv\npipenv install\n```\n\nAfter that you may run the script with\n\n```\npipenv run bin/update-data.py\n```\n\nThis will generate the aforementioned JSON files containing the latest spread data for each country.\n\nNow the data are prepared in folder dist/data/ you can prepare the code for deployment to a web server.\n\nThis app uses [webpack](https://webpack.js.org/) to bundle the files from src/ into the deployment directory dist/.\n\nIf you haven't done it already, install the necessary [Node](https://nodejs.org/) modules: \n\n```\nnpm install --save-dev\n```\n\nAfter that you can bundle the files for production use by running\n\n```\nnpx webpack --mode=\"production\" --no-watch\n```\n\nor, alternatively to produce debug friendly code and let webpack watch and rebuild changed files\n\n```\nnpm run build\n```\n\nNow you can copy the files in dist/ to the web server of your choice. bin/deploy.sh contains a template for a script that copies the files via SSH to a remote directory:\n\n```\nDIST=dist\nSERVER=\u003cthe host name or IP address of your web server\u003e\nREMOTE_DIR=\u003cthe directory to deploy to\u003e\ntar -C ${DIST} -czf - . | ssh ${SERVER} \"(tar -C ${REMOTE_DIR} -xzf - )\"\n```\n\nFeel free to modify it according to your enviroment.\n\n\n## License\n\nCopyright \u0026copy; 2020 [Oliver Lau](mailto:oliver@ersatzworld.net)\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).\n\n---\n\nDieses Programm ist freie Software. Sie können es unter den Bedingungen der [GNU General Public License](http://www.gnu.org/licenses/gpl-3.0), wie von der Free Software Foundation veröffentlicht, weitergeben und/oder modifizieren, entweder gemäß Version 3 der Lizenz oder (nach Ihrer Wahl) jeder späteren Version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F607011%2Fcovid-19","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F607011%2Fcovid-19","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F607011%2Fcovid-19/lists"}