Simple Flask app that uses Twilio to send people a daily message and turn their responses into a mood map:
Text a short username to (510) 213-6505 to get started.
D3 calendar view from mbostock.
You'll need:
- A Twilio account
- PostgresSQL
- Clone repo:
git clone https://github.com/lippytak/mood-map.git
- Create virtual environment and source it:
cd mood-map
virtualenv venv
source venv/bin/activate
- Install stuff
pip install -r requirements.txt
- Create a
.env
file with the following variables (remove the brackets):
DEBUG=True
TWILIO_NUM=[INSERT TWILIO PHONE NUMBER]
TWILIO_SID=[INSERT TWILIO SID]
TWILIO_AUTH=[INSERT TWILIO AUTH]
DATABASE_URL=postgres://[USERNAME]@localhost/mood
- Setup database
sudo -u [YOUR POSTGRES USERNAME] createdb mood
foreman run python
from mood import db
db.create_all()
- Run locally
foreman start
- Check it out at
localhost:8000
Remember to source your shell (source venv/bin/activate
) whenever you restart your terminal.