An attempt to raise awareness around the Covid-19 pandemic amongst the community.
- 🌏 Get worldwide Coronavirus disease (COVID-19) stats.
- 🇮🇳 Indian State wise data of Coronavirus disease.
- 💫 Country wise stats.
- 🗃️ Data: Country, Cases, Deaths, Recovered, Active, Critical, Per Million
- 🔔 Latest notifications by Indian Government related to COVID-19.
- 🥁 Announcements by reliable organisations like WHO.
- 🎯 Guidance on how to be safe (issued by WHO)
The project runs on Python 3.
-
Create a virtual environment:
virtualenv venv --python=python3
-
Activate the virtual environment:
source ./venv/bin/activate
-
Install all the dependencies in
requirements.txt
file:pip install -r requirements.txt
-
Make sure you exported the following environment variables:
export DB_TYPE=<database_type>
export DB_USERNAME=<database_username>
export DB_PASSWORD=<database_password>
export DB_ENDPOINT=<database_endpoint>
export DB_NAME=<database_name>
-
Run the app:
python app.py
-
Navigate to http://localhost:5000 in your browser
-
When you are done using the app, deactivate the virtual environment:
deactivate
You can access the following routes to get data.
- /home : Overall World wide stats.
- /world : Country wise report
- /india : Indian State wise report.
- /announcements : Get announcements by WHO.
- /notifications : Get notifications from Indian government.
- /guide : Get guidance to fight COVID-19, posted by WHO.
NOTE: Announcements and Guidance need to be added to the database. Deployed version of know-Corona have all the data.
This app is deployed on Heroku and you can access the above mentioned api using http://know-corona.herokuapp.com/ (abovementioned api)
Feel free to play with the project and raise issue to introduce new feature.
You can reach out to me at [email protected]
Licensed under the MIT License.