Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fantasy Football Draft Room - powered by Twilio

branch: master

bug fix

latest commit bf1345bd75
Carter Rabasa authored September 06, 2012
Octocat-spinner-32 public getting it ready to ship August 29, 2012
Octocat-spinner-32 routes bug fix September 06, 2012
Octocat-spinner-32 views added some tips September 01, 2012
Octocat-spinner-32 .gitignore init August 29, 2012
Octocat-spinner-32 .npmignore init August 29, 2012
Octocat-spinner-32 README.md typo August 30, 2012
Octocat-spinner-32 app.js init August 29, 2012
Octocat-spinner-32 config.sample.js init August 29, 2012
Octocat-spinner-32 package.json refactored twilio_capability into an NPM module August 30, 2012
README.md

Fantasy Football Draft Room

Hey sports fans, welcome to my latest Node.js experiment. Check out the hosted version of the Twilio Fantasy Football Draft Room.

Features

Usage

This app contains a single endpoint /voice for Twilio to use in setting-up your conference room. The TwiML is defined in views\voice.hjs and is currently configured to support conference calls with a max of 14 participants and a max duration of 3 hours. You can easily edit this to your liking:

<Response>
  {{^digits}}
  <Say>Welcome to the Fantasy Football Draft Room</Say>
  <Pause length="1"/>
  <Say>Brought to you by Twilio</Say>
  <Pause length="1"/>
  {{/digits}}
  {{#id}}
  <Say>Connecting you to your conference now</Say>
  <Dial timeLimit="10800">
    <Conference maxParticipants="14" waitUrl="http://twimlets.com/holdmusic?Bucket=com.twilio.music.rock">{{id}}</Conference>
  </Dial>
  {{/id}}
  {{^id}}
  <Gather method="get" numDigits="4">
    <Say>Please enter your 4 digit code now</Say>
  </Gather>
  {{/id}}
</Response>

Installation

Step-by-step instructions on getting this up and running:

1) Create free accounts on Twilio, Nodejitsu and RedisToGo if you don't already have them. Nodejitsu and RedisToGo are optional, feel free to swap-in similar services.

2) Create a new Twilio TwiML application (note the Application ID)

3) Grab the latest source

git clone https://github.com/crabasa/ff-draft-app.git

4) Create your own config.js file

mv config.sample.js config.js

5) Edit config.js and configure your Twilio & Redis credentials

6) Edit package.json and set your own values for subdomain and domains

6) Deploy to Nodejitsu

jitsu deploy

6) Point your TwiML application's voiceURL at http://yoursubdomain.jit.su/voice

7) Done!

Meta

Something went wrong with that request. Please try again.