зеркало из https://github.com/mozilla/web-forward.git
808d57332c | ||
---|---|---|
.. | ||
README.md | ||
events.json | ||
update_feed.js |
README.md
This directory contains a little tiny script for updating the "buzz feed" which pulls from three sources:
- A local file for events (
./events.json
) - tumblr for posts
- twitter search of
#webfwd
for tweets
update_feed.js
is a little tiny node.js script that does all
of the work. view source for more details
Deployment
- install node.js
- use cron to run
update_feed.js > latest.json
at some intervals - if you have a site update system, make sure you run update_feed.js immediately after updating your site code
- fiddle your web server to ensure there are properly short lived cache headers
on
latest.json
all done!