Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amangupta0709/covid19-data-india
A simple form asking your email id your state and district and it will automatically send an email of latest covid19 cases of your area
https://github.com/amangupta0709/covid19-data-india
covid-19 covid-api django smtp-mail
Last synced: 18 days ago
JSON representation
A simple form asking your email id your state and district and it will automatically send an email of latest covid19 cases of your area
- Host: GitHub
- URL: https://github.com/amangupta0709/covid19-data-india
- Owner: amangupta0709
- Created: 2020-04-12T00:43:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T09:32:31.000Z (about 2 years ago)
- Last Synced: 2024-11-06T00:06:49.292Z (2 months ago)
- Topics: covid-19, covid-api, django, smtp-mail
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Covid19-Data-India
A simple form asking your email id your state and district and it will automatically send an email of latest covid19 cases of your area.Made entirely on Python Web Framework Django by using Covid-19 India API.
## How it Works
1. Type your name, gmail email address as both are required fields.
2. Select Your State and District, both must match else it will show error.
3. After clicking Submit, You will recieve an email showing Corona virus Active,Confirmed and Death cases of your State and District.
## How to Use
### Initialize the project
##### Create and activate a virtualenv:
1. `virtualenv venv`. This will a create a vitual environment called "venv" that helps with controlling dependencies.
2. `source venv/bin/activate`.##### Install dependencies:
(while in the activated virtual environment)
```bash
pip install -r requirements.txt
```
NOTE: After installing dependencies, pip-tools is also installed. You can now use it to manage package dependencies of your project.Add a new package to requirements.txt and run the following command to auto-update requirements.txt file
```bash
pip freeze > requirements.txt
```Run the following command to sync your virtualenv
```bash
pip-sync
```
This will install/upgrade/uninstall everything necessary to match the requirements.txt contents.##### Migrate, Create a Superuser, and Run the Server:
```bash
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
```