Reader small image

You're reading from  Raspberry Pi LED Blueprints

Product typeBook
Published inSep 2015
Publisher
ISBN-139781782175759
Edition1st Edition
Right arrow
Author (1)
Agus Kurniawan
Agus Kurniawan
author image
Agus Kurniawan

Agus Kurniawan is an independent technology consultant, author, and lecturer. He has over 18 years' experience working on various software development projects, including delivering training courses and workshops, and delivering technical writing. He has done a few research activities related to wireless networking, software, and security in multiple universities. Currently, he is pursuing a Ph.D. program in Computer Science in Germany. He has previously written five books for Packt.
Read more about Agus Kurniawan

Right arrow

Introducing Node.js


Node.js is used to build a network and a server-side application. We can also build web applications using Node.js. In this section, I will introduce you to how to use Node.js on Raspberry Pi. Then, use it to control sensor or actuator devices. The last task is to show how to publish sensor or actuator to be controlled via a browser or a mobile Android application. For further information about Node.js, you can visit the official Node.js website at http://www.nodejs.org.

To install Node.js runtime on Raspberry Pi, assuming that you use Raspbian OS, you can type the following commands in the terminal:

$ sudo apt-get update
$ sudo apt-get install nodejs

To verify the Node.js program, you can type the following command:

$ nodejs -v

You can also install Node.js using Adafruit's Raspberry Pi package repository. Type the following commands:

$ curl -sLS https://apt.adafruit.com/add | sudo bash
$ sudo apt-get install node

After the installation, you can type the following command...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Raspberry Pi LED Blueprints
Published in: Sep 2015Publisher: ISBN-13: 9781782175759

Author (1)

author image
Agus Kurniawan

Agus Kurniawan is an independent technology consultant, author, and lecturer. He has over 18 years' experience working on various software development projects, including delivering training courses and workshops, and delivering technical writing. He has done a few research activities related to wireless networking, software, and security in multiple universities. Currently, he is pursuing a Ph.D. program in Computer Science in Germany. He has previously written five books for Packt.
Read more about Agus Kurniawan