Skip to content

Part 1. Nodejs

jrbail01 edited this page Feb 7, 2019 · 5 revisions

Node.js + Raspberry Pi

Raspberry Pi is a perfect little device to host our Node.js web server because it is small, inexpensive, powerful, and it runs Linux. If you have been looking for a really good use case for that Raspberry Pi you bought, this is definitely one.

Node.js Installation

At your Raspberry Pi's terminal window, download the latest version of Node.js:

$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

Install Node.js:

$ sudo apt-get install -y nodejs

Verify that the installation was successful by checking the version number of Node.js

$ node -v

Now that Node.js is installed on our Pi, let's host a webpage and test it out.

<< Introduction - Part 2: Initial State >>

Clone this wiki locally