Skip to content

Webpage to display newsfeed content by running server-side javascript

Notifications You must be signed in to change notification settings

JohnZucker/newsfeed-nodejs

Repository files navigation

newsfeed-nodejs

Webpage to display newsfeed content by running server-side javascript

Project brief

Create news website with the following requirements :

  • Display top 10 headlines from the BBC and SKY on a webpage
  • Use a node.js server
  • All data to go through the nodejs server

Source control

https://github.com/JohnZucker/newsfeed-nodejs

Server used for tests

node v0.13.0-pre
npm 2.3.0
Darwin 12.5.0 Darwin Kernel Version 12.5.0

Installation

As https://gist.github.com/isaacs/579814#file-only-git-all-the-way-sh
Requires node and npm

$ npm install

News feeds used

Test runs

To test locally, (optionally) using verbose (command argument verbose*, VERBOSE*) logging,

$ node newsfeed-display.js verbose &

Expected console logging

Server running at http://localhost:8124/
Rendering articles from feedsource http://feeds.bbci.co.uk/news/rss.xml    
Rendering articles from feedsource http://feeds.skynews.com/feeds/rss/home.xml    
Already encountered feed sources:     
Adding feed http://feeds.skynews.com/feeds/rss/home.xml with feeds_processed_length = 0     
Already encountered feed sources: http://feeds.skynews.com/feeds/rss/home.xml    
Adding feed http://feeds.bbci.co.uk/news/rss.xml with feeds_processed_length = 1

Webpage output should resemble

newsfeed-nodejs-webpage-example.png

For simple 'walkthrough' tests using a 'mocked by hand' implementation of the HttpRequest as file output for analysis, see subdirectory handmocked.

Automated tests

To establish regression baseline.

Test tool dependencies

To execute tests

$ mocha test

About

Webpage to display newsfeed content by running server-side javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published