-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
24 lines (21 loc) · 1.14 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This is a simple implementation of an Acme Cafe pie tracker. It uses node.js + WebSockets + Twitter Streaming API to push tweets onto a page and into MongoDB in realtime. It has a long way to go but this is a good start.
Currently working:
- Insert tweets into MongoDB and broadcast immediately onto websocket
- Render pages using express and pull tweets from MongoDB.
Todo:
- add socket.IO or similar for cross browser streaming
- add live sorted leaderboard and recent pies tracking
- add heuristic analysis to track the kind of pies
To get started:
- install node.js, express, and ejs.
- clone the repository with 'git clone git://github.com/tylor/acme-pie-tracker.git'
- move into the directory 'cd acme-pie-tracker'
- initialize the submodules: 'git submodule update --init'
- build node-mongodb-native:
- move into the directory 'cd libs/node-mongodb-native'
- build it by running 'make'
- move back to root: 'cd ../..'
- enter your Twitter credentials in acme-pie-tracker.js
- start mongodb server
- start Acme pie server by running 'node acme-pie-tracker.js'.
- open acme-pie-tracker.html in a modern browser with WebSockets support, like Chrome.