This is a simple Twilio starter project with Flask and Twilio Python SDK.
Clone the repo and build the environment:
$ git clone https://github.com/greyli/flask-twilio-starter
$ cd flask-twilio-starter
$ python3 -m venv venv # use python -m venv venv" on Windows
$ . venv/bin/activate # use "venv\Scripts\activate" on Windows
(venv) $ pip install -r requirements.txt
Rename the .env.example
to .env
, fill the variables in it (You will need to register a free Twilio account).
Run the application with:
(venv) $ flask run
Then open http://localhost:5000 to test.