⚡️ Get real-time
, verified
leads on Oxygen, Remdesivir, ICU, Beds, Food and more based on your location. Get notifications on Vaccine at your mail whenever it is available.
- ⚡️ Get real-time verified leads on resources.
- 🔥 Fast, real-time, built with
Next.js
,Twitter-api
,CoWIN API
andAWS
- 🚀 Get Covid-19 State based on States, Areas, Cities and Overall India.
- 🇮🇳 Map wise distribution of Active cases, Total Recovered, Total till now etc.
- 🤙🏻 Real-time slots list available on the website itself.
- 📍 Location-based filtering for tweets. (All the Indian cities are included)
Installation is simple. To run the project locally, follow the below steps:
Clone the repository
git clone https://github.com/PlaceholderTech/covidrescue.co.in.git
Install the packages
npm install
oryarn
Create a .env.local
file to setup your environment variables. Example of .env file is provided in the repository as .env.example
TWITTER_API_KEY = ''
TWITTER_API_SECRET = ''
TWITTER_BEARER_TOKEN = ''
TWITTER_ACCESS_TOKEN = ''
TWITTER_ACCESS_TOKEN_SECRET = ''
GOVT_DATA_API = ''
EMAIL=''
APPLICATION_PASSWORD=''
MYSQL_HOST=''
MYSQL_DATABASE=''
MYSQL_USERNAME=''
MYSQL_PASSWORD=''
MYSQL_PORT=''
For the Twitter posts to work, you need to create a Twitter Standard V2 Account. You can do it here.
Approving of the Developer portal may take 1 day or more.
Once you have the Twitter API credentials, populate the .env.example
file and you're good to go.
Note: Users are deleted when the notification is sent to the user.
Setup a MySQL server on your system. Create a user and get the following credentials:
MYSQL_HOST
MYSQL_DATABASE
MYSQL_USERNAME
MYSQL_PASSWORD
MYSQL_PORT
- Make your Gmail application
less secure
. Visit This Link for more information. - Once you're done, Feed your Email and Password in
.env.local
file.
EMAIL=''
APPLICATION_PASSWORD=''
For sending the automated emails, We've written a Cron Job that pings the CoWIN API
every 1 minute. You can find the script under /scripts
folder.
You can run that script on your local node-express server for running the corn job.
To run the application locally:
npm run dev
or
yarn dev
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Developed by Manu Arora, Kishore Raghavendra Gunnam and Abhinav Sharma