This is an application example implementing an automated phone line using Python 2.7 and Flask web framework.
To run the app locally
-
Clone this repository and
cdinto it. -
Create a new virtual environment.
-
If using vanilla virtualenv:
virtualenv venv source venv/bin/activate -
If using virtualenvwrapper:
mkvirtualenv account-verification-flask
-
-
Install the requirements.
pip install -r requirements.txt -
Start the development server.
python manage.py runserver -
Expose the application to the wider Internet using ngrok.
ngrok http 5000 -host-header="localhost:5000" -
Provision a number under the Twilio's Manage Numbers page on your account. Set the voice URL for the number to http://[your-ngrok-subdomain].ngrok.io/ivr/welcome
That's it!
You can run the tests locally through coverage:
-
Run the tests.
$ coverage run manage.py test
You can then view the results with coverage report or build an HTML report with coverage html.
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.