We will be using Homebrew to install Node.js, Homebrew makes it more easier to install and upgrade Node.js.
Downloading and installing Homebrew (XCode need to be installed)
Sitemap helps Search Engine index your website. It give the search engine a list of all the links available.
If you don’t have a sitemap your website might not be indexed correctly and only some links will be shown in search result. Wintersmith is a really good static site generator. I have written a template for it that generates the sitemap.xml file so search engines can index your website. All you need to do is to clone this github repo and copy the sitemap.json from the contents directory and places it into your website source contents directory. Next copy the sitemap.jade from templates directory and place it in your website source templates directory. This will automatically generate the sitemap required for your website.
Node.js is a brilliant platform for creating network applications. It is mainly known for its non-blocking I/O and event driven system. In simple terms, Node.js can easily handle a large number of requests while simultaneously consuming lesser server memory. These are the attributes one should be looking for in a low power server like, you guessed it, Raspberry Pi. Here, you’ll learn how to setup Node.js for Raspberry Pi.
Why use Node.js?
Node.js comes with a built in HTTP server library. This means it doesn’t require the help of any external piece of software to act as a web-server. Using Node.js alone one can have greater control of the web-server parameters.
Of course, all we care about it tinkering. Cool new web applications require Node.js to function and we like our Raspberry Pi not being a source of heat all the time. Of course, you could check the Wikipedia entry as well as their very own site.
Installing Node.js on Raspberry Pi
1. Download the Node.js package for ARM
As you must be aware, the Raspberry Pi sports an ARM11 chip. So, the package optimised for ARM will have to be downloaded. It can be done by entering the following command into the terminal.