Before you start, make sure you run bundle install
to install any missing Gems.
For example, on bash
:
export TWILIO_ACCOUNT_SID=(get from ajay)
export TWILIO_AUTH_TOKEN=(get from ajay)
export HEYMOM_HOST='http://callmom.herokuapp.com'
Note that currently only Postgres is supported
Create a copy of config/database.example.yml
named config/database.yml
and add the right settings for your local db.
For example,
development: &development
adapter: postgresql
database: heymom_dev
username: [username]
password: [password]
host: localhost
min_messages: warning
test: &test
<<: *development
database: heymom_test
Note that only US phone numbers are supported for now.
Send at HTTP POST request to /register
.
For example:
curl -d "" "http://127.0.0.1:5000/register?name=ajay&phone_number=19175551212&contact_name=mom&contact_phone_number=19736661313"
foreman start -f Procfile-dev