Cases COVID-19 in Brazil and in the World
Lucca Pessoa da Silva Matos (c) 2020 - GitHub Repository
To use this repository you need to make a git clone:
git clone --depth 1 https://github.com/lpmatos/corona-api-tracker.git -b master
Pull requests are welcome. If you'd like to support the work and buy me a β, I greatly appreciate it!
- /code in this folder we have the application.
- /docs is the directory where we have all documentation files.
- CHANGELOG.md is a versioning file usend to control development versions.
- docker-compose.yml is the Docker container orchestrator.
- Dockerfile is a file used to set up your Docker environment.
- Makefile is a file containing a set of automation policies.
- README.md is an optional file. A human-readable README file..
- The files found in the project root are support files to others contexts.
The 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.
Tools |
---|
Python |
Docker |
docker-compose |
In the directory, install the dependencies.
npm install
Start React development server.
npm start
Await for browser window open in http://localhost:3000.
In the directory, install the dependencies.
npm install
Execute build command to create minify version to production.
npm run build
Will be create folder /build with the files. Inserts into HTTP server. More information
Steps to build the Docker image.
docker image build -t <IMAGE_NAME> -f <PATH_DOCKERFILE> <PATH_CONTEXT_DOCKERFILE>
docker image build -t <IMAGE_NAME> . (This context)
Steps to run the container.
- Linux running:
docker container run -d -p <LOCAL_PORT:CONTAINER_PORT> <IMAGE_NAME> <COMMAND>
docker container run -it --rm --name <CONTAINER_NAME> -p <LOCAL_PORT:CONTAINER_PORT> <IMAGE_NAME> <COMMAND>
- Windows running:
winpty docker.exe container run -it --rm <IMAGE_NAME> <COMMAND>
Steps to enter inside the container.
docker exec -it <CONTAINER_NAME> <COMMAND>
Steps to clean your Docker environment.
docker system prune -af
- Stop all containers.
docker stop $(docker ps -aq)
- Remove all containers.
docker rm $(docker ps -aq)
- Remove all images.
docker rmi $(docker images -a)
- Remove all volumes.
docker volume prune -f
- Remove all network.
docker network prune -f
Name | Description |
---|---|
LOG_PATH | Just the Log Path |
LOG_FILE | Just the Log File |
LOG_LEVEL | Just the Log Level |
LOGGER | Just the Logger name |
-
Make a Fork.
-
Follow the project organization.
-
Add the file to the appropriate level folder - If the folder does not exist, create according to the standard.
-
Make the Commit.
-
Open a Pull Request.
-
Wait for your pull request to be accepted.. π
Remember: There is no bad code, there are different views/versions of solving the same problem. π
You must send the project to your GitHub after the modifications
git add -f .
git commit -m "Added - Fixing somethings"
git push origin master
- Create the first Dockerfile with multistage builds strategy.
- Test Dockerfile with multistage.
- Create log class and config class.
- Adding exceptions handlers in log class and config class.
- Customize log with coloredlogs.
- Create simple ASCII Art with pyfiglet module.
- Adding request class.
- Adding Bing Corona to get information.
- Implement country information search using restcountries API.
-
Projects:
-
Datasets:
-
APIs:
-
Strategys:
Link | Description |
---|---|
Coronavirus | World Health Organization. |
Novel coronavirus (COVID-19) | World Health Organization. |
Link | Description |
---|---|
WHO | World Health Orginization. |
CDC | Center for Disease control. |
π€ Hey!! If you like this project or if you find some bugs feel free to contact me in my channels:
- Linktree: https://linktr.ee/lpmatos
To check the change history, please access the CHANGELOG.md file.
This repository is a study project, therefore, it will not always be maintained π».
Give me a βοΈ if this project helped you!
Made with π by me π inspired on readme-md-generator