Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```