Skip to content

lambtron/worldcupsms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Worldcup SMS 2014

The FIFA world cup alerts app can be found here.

Subscribe to FIFA world cup events by texting (415) 799-2563.

Text GOAL to receive all goals, and the start and end of matches; CARD to receive all goals, red / yellow cards, and the start and end of matches; and SUB to receive everything (goals, cards, substitions, and the start and end of matches). You can send STOP to discontinue SMS updates. Or follow @fifaWCalerts for tweet updates.

Running it locally

You need

  • npm
  • node
  • mongodb
  • Twilio
  • Twitter (get an account and then register an app)

First, clone the project. Then, add a ./config/config.js file that looks like this.

process.env.TWILIO_ASID = 'Axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
process.env.TWILIO_AUTH_TOKEN = 'bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
process.env.TWILIO_PHONE_NUMBER = '+14158888888';
process.env.TWIT_CONSUMER_KEY = 'MXXxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
process.env.TWIT_CONSUMER_SECRET = 'uxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
process.env.TWIT_ACCESS_TOKEN = '212311534-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
process.env.TWIT_ACCESS_TOKEN_SECRET = 'FExxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';

Execute the following commands in your terminal.

$ npm install
$ mongod
$ node server.js

Any questions or comments, just tweet at me @andyjiang.

Happy coding!

About

Get text updates from the world cup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published