- Clone repo and spin up a virtualenv
- In project dir
pip install -r requirements.txt
cd app
after thatcp .env.template .env
and update the .env with your twilio specifics- migrate the DB (sqlite)
python manage.py migrate
- create admin user at
python manage.py createsuperuser
python manage.py runserver
to run server- login to admin panel at http://localhost:8000/admin login with admin user details you created
- Add quesions to
Questions
table, mark them as active for the whatsapp users to answer them - install ngrok
- run
ngrok http 8000
, which will create a tunnel to your local django instance from the www, please add your tunnel url to the ALLOWD_HOSTS in.env
omit thehttps://
- Update your twilio sandbox URLs on their website:
- Incoming messages will be
[ngrok tunnel]/questions/twilio_messages
- Incoming messages will be
That should get you going.