This application is built for the Attendy Project for IEOR 171: Technology Firm Leadership and Organizational Behavior at University of California, Berkeley.
Since our project is currently under development, we don't have an online version ready. However, you can test it locally by following the intructions below.
In bash, run:
git clone https://github.com/lentebloem/all-in-flask.git
cd all-in-flask
-
If using vanilla virtualenv:
virtualenv venv source venv/bin/activate
-
If using virtualenvwrapper:
mkvirtualenv automated-survey
pip install -r requirements.txt
-
Copy the
.env.example
file to.env
, and edit it to match your database. -
Run
source .env
to apply the environment variables (or even better, use autoenv) -
Run the migrations.
python manage.py db upgrade
- Seed the database.
python manage.py dbseed
Seeding will load survey.json
into SQLite.
- Expose your appliction to the wider internet using ngrok.
To actually forward incoming calls, your development server will need to be publicly accessible. We recommend using ngrok to solve this problem.
$ ngrok http 5000
Once you have started ngrok, update your TwiML app's voice URL setting to use your ngrok hostname. It will look something like this:
http://88b37ada.ngrok.io/support/call
python manage.py runserver
Once ngrok is running, open up your browser and go to your ngrok URL. It will
look like this: http://88b37ada.ngrok.io
MIT