Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
open a door with a simple call
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
spec
.gitignore
.rvmrc
.travis.yml
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
Rakefile
config.ru

README.md

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
Something went wrong with that request. Please try again.