{"id":19075804,"url":"https://github.com/lpsm-dev/corona-tracker","last_synced_at":"2025-02-22T04:44:32.924Z","repository":{"id":45214874,"uuid":"248383386","full_name":"lpsm-dev/corona-tracker","owner":"lpsm-dev","description":"🦠 Simple Corona Tracker used by command line and integration with Telegram","archived":false,"fork":false,"pushed_at":"2023-12-15T14:27:12.000Z","size":940,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T18:17:22.199Z","etag":null,"topics":["alpine","bot","corona","covid-19","docker","docker-compose","python","telegram","tracker"],"latest_commit_sha":null,"homepage":"","language":"Python","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/lpsm-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2020-03-19T01:35:13.000Z","updated_at":"2022-01-07T03:44:31.000Z","dependencies_parsed_at":"2023-12-05T00:46:40.142Z","dependency_job_id":null,"html_url":"https://github.com/lpsm-dev/corona-tracker","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/lpsm-dev%2Fcorona-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpsm-dev%2Fcorona-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpsm-dev%2Fcorona-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpsm-dev%2Fcorona-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpsm-dev","download_url":"https://codeload.github.com/lpsm-dev/corona-tracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240127089,"owners_count":19751938,"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":["alpine","bot","corona","covid-19","docker","docker-compose","python","telegram","tracker"],"created_at":"2024-11-09T01:56:03.484Z","updated_at":"2025-02-22T04:44:32.904Z","avatar_url":"https://github.com/lpsm-dev.png","language":"Python","readme":"Corona Tracker\n============\n\n[![Open Source](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://github.com/lpmatos/corona-tracker) [![Contributors](https://img.shields.io/github/contributors/lpmatos/corona-tracker)](https://github.com/lpmatos/corona-tracker/graphs/contributors) [![MIT License](https://img.shields.io/github/license/lpmatos/corona-tracker)](https://github.com/lpmatos/corona-tracker/blob/master/LICENSE) [![Languages](https://img.shields.io/github/languages/count/lpmatos/corona-tracker)](https://github.com/lpmatos/corona-tracker) [![Top Language](https://img.shields.io/github/languages/top/lpmatos/corona-tracker)](https://github.com/lpmatos/corona-tracker) [![GitHub fork](https://img.shields.io/github/forks/lpmatos/corona-tracker?style=social)](https://github.com/lpmatos/corona-tracker/network/members) [![GitHub stars](https://img.shields.io/github/stars/lpmatos/corona-tracker?style=social)](https://github.com/lpmatos/corona-tracker/stargazers) [![GitHub watchers](https://img.shields.io/github/watchers/lpmatos/corona-tracker?style=social)](https://github.com/lpmatos/corona-tracker/watchers)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"/docs/images/COVID.jpg\" width=\"500px\" float=\"center\"/\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e🦠 Python Project COVID-19 Tracker 🦠\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eCases COVID-19 in Brazil and in the World\u003c/strong\u003e\n\u003c/p\u003e\n\n## Copyright (c)\n\nLucca Pessoa da Silva Matos (c) 2020 - **GitHub Repository**\n\n## Getting Started\n\nTo use this repository you need to make a **git clone**:\n\n```bash\ngit clone --depth 1 https://github.com/lpmatos/corona-api-tracker.git -b master\n```\n\nPull requests are welcome. If you'd like to support the work and buy me a ☕, I greatly appreciate it!\n\n\u003ca href=\"https://www.buymeacoffee.com/EatdMck\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 100px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n\n## Organization\n\n* **/code** in this folder we have the application.\n* **/docs** is the directory where we have all documentation files.\n* **CHANGELOG.md** is a versioning file usend to control development versions.\n* **docker-compose.yml** is the **Docker** container orchestrator.\n* **Dockerfile** is a file used to set up your **Docker** environment.\n* **Makefile** is a file containing a set of automation policies.\n* **README.md** is an optional file. A human-readable **README** file..\n* The files found in the project root are support files to others contexts.\n\n## Description\n\nThe idea behind this project is the construction of a simple API that consumes data collected on the current situation of COVID-19 in the world, presenting, in addition to a simple view on the cases, a view with details referring to each region/country of the country according to the population quantity.\n\n## Pre-Requisites\n\n**Tools**\n:---:\n**Python**\n**Docker**\n**docker-compose**\n\n## Desenvolvimento sem Docker\n\n### Usage\n\nIn the directory, install the dependencies.\n\n```bash\nnpm install\n```\n\nStart React development server.\n\n```bash\nnpm start\n```\n\nAwait for browser window open in http://localhost:3000.\n\n### Deployment\n\nIn the directory, install the dependencies.\n\n```bash\nnpm install\n```\n\nExecute build command to create minify version to production.\n\n```bash\nnpm run build\n```\n\nWill be create folder /build with the files. Inserts into HTTP server. [More information](https://create-react-app.dev/docs/deployment/)\n\n## Desenvolvimento com Docker\n\nSteps to build the Docker image.\n\n### Build\n\n```bash\ndocker image build -t \u003cIMAGE_NAME\u003e -f \u003cPATH_DOCKERFILE\u003e \u003cPATH_CONTEXT_DOCKERFILE\u003e\ndocker image build -t \u003cIMAGE_NAME\u003e . (This context)\n```\n\n### Run\n\nSteps to run the container.\n\n* **Linux** running:\n\n```bash\ndocker container run -d -p \u003cLOCAL_PORT:CONTAINER_PORT\u003e \u003cIMAGE_NAME\u003e \u003cCOMMAND\u003e\ndocker container run -it --rm --name \u003cCONTAINER_NAME\u003e -p \u003cLOCAL_PORT:CONTAINER_PORT\u003e \u003cIMAGE_NAME\u003e \u003cCOMMAND\u003e\n```\n\n* **Windows** running:\n\n```\nwinpty docker.exe container run -it --rm \u003cIMAGE_NAME\u003e \u003cCOMMAND\u003e\n```\n\n### Exec\n\nSteps to enter inside the container.\n\n```bash\ndocker exec -it \u003cCONTAINER_NAME\u003e \u003cCOMMAND\u003e\n```\n\n### Cleaning\n\nSteps to clean your Docker environment. \n\n```bash\ndocker system prune -af\n```\n\n*  Stop all containers.\n\n```bash\ndocker stop $(docker ps -aq)\n```\n\n*  Remove all containers.\n\n```bash\ndocker rm $(docker ps -aq)\n```\n\n*  Remove all images.\n\n```bash\ndocker rmi $(docker images -a)\n```\n\n*  Remove all volumes.\n\n```bash\ndocker volume prune -f\n```\n\n*  Remove all network.\n\n```bash\ndocker network prune -f\n```\n\n## Environment variables\n\n**Name**  |  **Description**\n:---:  |  :---:\n**LOG_PATH**  |  Just the Log Path\n**LOG_FILE**  |  Just the Log File\n**LOG_LEVEL**  |  Just the Log Level\n**LOGGER**  |  Just the Logger name\n\n## Built with\n\n- [Python](https://www.python.org/)\n- [Docker](https://docs.docker.com/)\n- [Docker Compose](https://docs.docker.com/compose/)\n\n## How to contribute\n\n1. Make a **Fork**.\n\n2. Follow the project organization.\n\n3. Add the file to the appropriate level folder - If the folder does not exist, create according to the standard.\n\n4. Make the **Commit**.\n\n5. Open a **Pull Request**.\n\n6. Wait for your pull request to be accepted.. 🚀\n\nRemember: There is no bad code, there are different views/versions of solving the same problem. 😊\n\n## Add to git and push\n\nYou must send the project to your GitHub after the modifications\n\n```bash\ngit add -f .\ngit commit -m \"Added - Fixing somethings\"\ngit push origin master\n```\n\n## Pomodoro Tasks\n\n- [x] Create the first Dockerfile with multistage builds strategy.\n- [x] Test Dockerfile with multistage.\n- [x] Create log class and config class.\n- [x] Adding exceptions handlers in log class and config class.\n- [x] Customize log with coloredlogs.\n- [x] Create simple ASCII Art with pyfiglet module.\n- [x] Adding request class.\n- [x] Adding Bing Corona to get information.\n\n## TODO\n\n- Implement country information search using restcountries API.\n\n## Links References:\n\n* Projects:\n    * https://github.com/pomber/covid19\n    * https://github.com/Doc-McCoy/bot-corona-tracker\n\n* Datasets:\n    * https://github.com/CSSEGISandData/COVID-19\n\n* APIs:\n    * https://restcountries.eu/rest/v2/\n    * https://www.bing.com/covid/data\n    * https://thevirustracker.com/api\n\n* Strategys:\n    * https://blog.realkinetic.com/building-minimal-docker-containers-for-python-applications-37d0272c52f3\n\n## Get to Know\n\n| Link  | Description  |\n|:------|:-------------|\n| [Coronavirus](https://www.who.int/health-topics/coronavirus) | World Health Organization. |\n| [Novel coronavirus (COVID-19)](https://www.who.int/emergencies/diseases/novel-coronavirus-2019) | World Health Organization. |\n\n## Current Status\n\n| Link  | Description  |\n|:------|:-------------|\n| [WHO](https://www.who.int/emergencies/diseases/novel-coronavirus-2019) | World Health Orginization. |\n| [CDC](https://www.cdc.gov/coronavirus/2019-ncov/about/index.html) | Center for Disease control. |\n\n## ➤ Author \u003ca name = \"author\"\u003e\u003c/a\u003e\n\n👤 Hey!! If you like this project or if you find some bugs feel free to contact me in my channels:\n\n\u003e\n\u003e * Linktree: https://linktr.ee/lpmatos\n\u003e\n\n## ➤ Versioning \u003ca name = \"versioning\"\u003e\u003c/a\u003e\n\nTo check the change history, please access the [**CHANGELOG.md**](CHANGELOG.md) file.\n\n## ➤ Project status \u003ca name = \"project-status\"\u003e\u003c/a\u003e\n\nThis repository is a study project, therefore, it will not always be maintained 👻.\n\n## ➤ Donations \u003ca name = \"donations\"\u003e\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.blockchain.com/pt/btc/address/bc1qn50elv826qs2qd6xhfh6n79649epqyaqmtwky5\"\u003e\n    \u003cimg alt=\"BTC Address\" src=\"https://img.shields.io/badge/BTC%20Address-black?style=for-the-badge\u0026logo=bitcoin\u0026logoColor=white\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://live.blockcypher.com/ltc/address/ltc1qwzrxmlmzzx68k2dnrcrplc4thadm75khzrznjw/\"\u003e\n    \u003cimg alt=\"Litecoin Address\" src=\"https://img.shields.io/badge/Litecoin%20Address-black?style=for-the-badge\u0026logo=litecoin\u0026logoColor=white\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## ➤ Show your support \u003ca name = \"show-your-support\"\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n\nGive me a ⭐️ if this project helped you!\n\n\u003cp\u003e\n  \u003cimg alt=\"gif-header\" src=\"https://www.icegif.com/wp-content/uploads/baby-yoda-bye-bye-icegif.gif\" width=\"350px\" float=\"center\"/\u003e\n\u003c/p\u003e\n\nMade with 💜 by [me](https://github.com/lpmatos) 👋 inspired on [readme-md-generator](https://github.com/kefranabg/readme-md-generator)\n\n\u003c/div\u003e\n","funding_links":["https://www.buymeacoffee.com/EatdMck"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpsm-dev%2Fcorona-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpsm-dev%2Fcorona-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpsm-dev%2Fcorona-tracker/lists"}