I would like to seek help on how to create a REST services using Node.JS in Raspberry PI. A simple REST services which can gather data from the sensors and write to SQLite database or Windows Azure's SQL Database. Hardware I will be using is Raspberry PI.

  • You want to collect sensor data locally on the RPi and then make them available via REST using NodeJS? Did I get it right?
    – Marco Poli
    Commented Jul 8, 2014 at 17:44
  • Yes, Marco Poli. Commented Jul 9, 2014 at 0:37

2 Answers 2


You'll need to first install the node.js package compatible with ARM:

sudo apt-get update
sudo apt-get upgrade
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-arm-pi.tar.gz
tar -xvzf node-v0.10.26-linux-arm-pi.tar.gz

Now add this to your .bash_profile



From there you can install express.js which you can use for your api

  • I just followed your steps and installed, hagope. What should I do next? Commented Jul 9, 2014 at 2:47
  • @user3127380 we aren't going to code your project for you, you need to do it yourself. We can help you with the Pi-specific bits, but ultimately you need to do the bulk of the work.
    – whiskers75
    Commented Jul 9, 2014 at 7:22

Take a look at this tutorial of how to use express 4 (last version so far), this is an amazing module, it provides a lot of power, just what you are looking for

Node.js + express + rest + mondoDB


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.