River5 on Windows

As you know, I’m a big fan of Dave Winer and his River of News aggregators. His recent River5 is particularly nice.

I’ve already posted about installing on a CloudAtCost server running Ubuntu. But it seems some folks are running into difficulty installing on Windows. It’s easy and works like a dream. Here’s how.

Note: This post describes how I set up River5 on my personal desktop. I don’t have a Windows server system set up anywhere. The instructions for such a server might be similar, but I don’t know.

Installing Node.js

If you have not done so already, install nodejs. Binary installers can be downloaded here.

After running the installer, you can check for correct installation in a Terminal like this:

C:\Users\david>node -v
C:\Users\david>npm -version

Note: I use the terms “Terminal” and “Command Prompt” interchangably in this post. These both refer to the window displayed by running the cmd.exe program. You can launch the program multiple ways including from the Start Menu or the File Explorer or an icon on the desktop. Probably other ways too. Refer to the help on your system if you don’t know how to start the program.

Download, Install, and Start River5

As in Dave’s original instructions, start by downloading the zip file containing River5. Just click this link to download the file river5-master.zip.

On my system, the file ends up in C:\Users\david\Downloads\river-5-master.zip. Your location will vary depending on your user name (“david” in my case) and where you have configured your browser to store things downloaded from the internet.

Now Unzip it Somewhere

Now you need to extract the files contained in the zip’ed file you just downloaded. Unfortunately, there are many different ways to do this. On my system, I’ve purchased a license for WinZip (you can try it for free if you want.) Use the zip tool of your choice to unzip the file to the location of your choice. River5 is not particularly picky about its location, but you should be. I put mine in C:\projects.

The process of unzipping created a directory C:\projects\river5-master. You can change the name of the directory if you want. Dave’s instructions suggest river. That’s probably better since the software on your system will not reflect any changes Dave makes on the master branch of his repository.

Note: This is much simpler if you have git installed on your system. However, if you use git, you probably don’t need any help setting things up.

Run NPM to Install

Change to the directory with the unzipped software and run NPM to install River5. This step is needed to download additional Nodejs packages required by River5. (Note how the command prompt changes after the cd command is executed.)

C:\Users\david>cd C:\projects\river5-master
C:\projects\river5-master>npm install

This will take a few moments. When completed, a list of installed packages will be displayed.

Start it Flowing

At this point, you can start the River5 software by typing:

C:\projects\river5-master>node river5.js

You should see a list of feeds and articles go whizzing by on the terminal.

Open a browser and navigate to localhost:1337. It will likely tell you that nothing can be displayed just yet. It takes a bit for all those feeds to be sliced and diced into a displayable form. But you can assure yourself that the software is running by going to the very top of the page and pulling down the menu behind “Stuff”. In that menu, click the very top item that says “Dashboard…”. A new window will open showing various information about what the aggregator is doing, including the second item, “Server up:”, which shows how long the server has been running. You should see it update every few seconds.

That’s it! You’re running a copy of River5 ready for you to customize with your own feeds.

Other Stuff

Keeping River5 Running: Depending on how you use your system, you will stop River5 from running. If you

  • Press Ctrl-C in the Terminal where River5 is running
  • Close the Command Prompt you used to start River5
  • Log off of Windows
  • Turn of your system

you will stop River5. You can switch users (without logging off) and River5 will continue to run in the background. It will also be accessible in a browser launched from the user you switched to.

Resources: You might be concerned about leaving this program running continually on your desktop. Don’t worry. According to Windows Task Manager, Nodejs is usually dormant, using no measurable CPU time. As it processes feeds, the CPU usage sometimes hits 0.2% on my system. It looks like it uses about 50 MB of RAM. It hasn’t slowed down anything else that is running on my system to any noticeable degree.

One thought on “River5 on Windows

  1. Pingback: Setting Up and Running Your Own River 5 Server on Azure (For Poets)

Comments are closed.