Jorgee97 / CovidTwilio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twilio

Covid-19 Colombia Twilio

About

Hey everyone, my partner Andrea and I build a WhatsApp bot which brings useful information about the people that is infected by Covid-19 in our country Colombia.

Dev.to Post that shows up the bot

How it works

The application uses the Twilio's WhatsApp API for sending information to the user based on a menu that we designed.

Features

  • Flask Web server
  • MongoDB Database
  • Web Scrapping

How to use it

The usage is shown in the Dev.to post

Set up

Requirements

Local development

After the above requirements have been met:

  1. Clone this repository and cd into it
git clone git@github.com:Jorgee97/CovidTwilio.git
cd CovidTwilio
  1. Create a virtualenv and activate
python3 -m venv .env
source .env/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Set environmental variables
export FLASK_APP=app
export FLASK_DEBUG=1
  1. Run the application
flask run
  1. Run ngrok to expose your api
./ngrok http 5000
  1. Add the ngrok Forwarding URL to your WhatsApp sandbox

That's it!

Cloud deployment

There is a Dockerfile attached to this repository that you can build and deploy wherever it fits best for your purposes. You can build your image using the Dockerfile like:

docker build -t covidtwilio:tag .

Resources

Contributing

This project is Open Source and we are open for contributions 😄

License

MIT

Disclaimer

No warranty expressed or implied. Software is as is.

About

License:MIT License


Languages

Language:Python 96.8%Language:Dockerfile 3.2%