Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.13 KB

README.md

File metadata and controls

53 lines (32 loc) · 1.13 KB

Readme

Twilio open

Opening a door with a simple phone call.

Idea

You call Twilio, twilio contacts the app passing your phone number among the params, the apps check if the number is authorized. If it is the Door.open method is called, if it's not you get told nicely that you are not known and ask if you want to be redirected to a real human.

Tests

This app is rspec tested, the following command will run the test suite.

bundle exec rake rspec

Cloudant

Since there is very little to store I decided to play a bit more and use Cloudant to store phone entries. Each entry is simple :

{'number' => '0600000000', 'name' => 'Ralph', 'authorized' => true}

Todo

  • Create something to add new people easily.

Needed env vars

In testing most data is read from temp files, once deployed it's a different story.

  • CLOUDANT_HOST
  • CLOUDANT_KEY
  • CLOUDANT_PASSWORD
  • DOOR_URL
  • FLOWDOCK_FLOW_TOKEN
  • NOTIFICATION_MESSAGE (the message that's sent to flowdock)

LICENSE

Under Mit license ! See LICENSE file.

Contributors

  • Thomas Riboulet / @mcansky

Thanks

  • Snootlab / @snootlab
  • Tau / @taucw