{"id":21892051,"url":"https://github.com/thegreatjavascript/2019-ncov-news","last_synced_at":"2025-03-22T03:22:02.672Z","repository":{"id":217767884,"uuid":"235767399","full_name":"thegreatjavascript/2019-nCoV-News","owner":"thegreatjavascript","description":"2019-nCoV疫情实时播报🅥｜墙内传播版","archived":false,"fork":false,"pushed_at":"2020-10-13T04:43:45.000Z","size":2967,"stargazers_count":138,"open_issues_count":5,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-03T00:24:56.685Z","etag":null,"topics":["2019ncov"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thegreatjavascript.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-01-23T10:00:43.000Z","updated_at":"2024-02-23T19:17:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"306f6589-2364-4829-9338-e9df8f865ad6","html_url":"https://github.com/thegreatjavascript/2019-nCoV-News","commit_stats":null,"previous_names":["thegreatjavascript/2019-ncov-news"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegreatjavascript%2F2019-nCoV-News","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegreatjavascript%2F2019-nCoV-News/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegreatjavascript%2F2019-nCoV-News/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegreatjavascript%2F2019-nCoV-News/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thegreatjavascript","download_url":"https://codeload.github.com/thegreatjavascript/2019-nCoV-News/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244900133,"owners_count":20528637,"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":["2019ncov"],"created_at":"2024-11-28T12:48:31.417Z","updated_at":"2025-03-22T03:22:02.645Z","avatar_url":"https://github.com/thegreatjavascript.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2019-nCoV疫情实时播报🅥｜墙内传播版\n\n\n\u003e 后端接口代码在[这里](https://github.com/QuantumGhost/ncov-channel-crawler)（由 [@QuantumGhost](https://github.com/QuantumGhost) 提供，感谢他的贡献。）\n\n电报上的那个频道是我知道的汇总国内官方渠道的疫情数据，做得最好的。我有天天看。（当然我也知道官方消息只有基本参考价值）。\n\n但我这两天在安利这个频道时犯了难，因为我得先让朋友下载个 Telegram，还得教他翻墙......\n考虑到这个难题，我连夜写了这个网页：**[https://2019ncov.ga](https://2019ncov.ga)** ）（已下线）\n\n在**国内可以直接访问查看频道更新的消息。**\n\n（建议发给国内没有 Telegram 账户的朋友使用。）\n\n数据来自：Telegram [同名频道](https://t.me/nCoV2019)提供的[RSS 源]( https://rsshub.app/telegram/channel/nCoV2019)\n\n\n\n**项目预览：（Mobile）**\n\n![previews](./previews/2.png)\n\n**同名Telegram频道长这样：**\n\n![3](./previews/3.png)\n\n\n\n#### 部署到其他地方\n\n\u003e 项目前后端分离，本仓库仅包含前端部分。\n\n**前端部分部署**\n\n将前端资源文件（`dist/`）上传到服务器即可。\n\n```bash\n# 1. 下载项目，通过git命令或者自行下载ZIP文件\ngit clone git@github.com:thegreatjavascript/2019-nCoV-News.git\n\n# 2. 命令行下进入到项目文件夹\ncd 2019-nCoV-News\n\n# 3. 使用scp命令将资源文件上传到服务器对应目录下，比如下面命令（hostname/ip/路径 请自行更改成你的）\nscp -r ./dist/* root@xx.xx.xx.xx:/var/www/html\n```\n\n\n\n**后端部分部署（非必须）**\n\n\u003e 消息数据由此[后端项目](https://github.com/QuantumGhost/ncov-channel-crawler)提供，通过Python调用Telegram接口来获取。除非你有特别的理由，否则不建议折腾。\n\n**环境要求：**\n\n1. [Node.js](https://nodejs.org/zh-cn/download/)\n2. npm（正常情况下安装完Node.js后会自动附带安装好，无需另行安装）\n3. [Python3](https://www.python.org/download/releases/3.0/)\n\n```bash\n# 1. 下载项目，通过git命令或者自行下载ZIP文件\ngit clone git@github.com:QuantumGhost/ncov-channel-crawler.git\n\n# 2. 命令行下进入到项目文件夹\ncd ncov-channel-crawler\n\n# 3. 请移步 https://github.com/QuantumGhost/ncov-channel-crawler#ncov-news-crawler\n\n# 4. 部署完Python项目后，需要回过头来修改下前端 `request.js` 中的`api`地址为后端监听的路由地址\n\n# 5. 重新打包前端项目，生成最新的资源文件\ncd 2019-nCoV-News\n# 安装项目依赖\n# 也可以使用`yarn`/`cnpm install`（如果你不是前端开发者，建议使用`cnpm install` ，自行Google安装`cnpm`命令，解决国内下载依赖慢的问题）\nnpm install\n# 生成资源文件\nnpm build\n\n# 6. 重新将最新的资源文件上传到服务器，详细说明同上\nscp -r ./dist/* root@xx.xx.xx.xx:/var/www/html\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthegreatjavascript%2F2019-ncov-news","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthegreatjavascript%2F2019-ncov-news","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthegreatjavascript%2F2019-ncov-news/lists"}