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.
You need
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!