The server will be based upon the RESTFul architecture and use a MEAN (MongoDB, Express, Angular, NodeJS) stack for it’s programming. This is because it’s quick and easy to setup!

Operating System:

For the OS, I used Raspbian Jessie Lite, simply because it’s the most supported OS for the Raspberry Pi. In addition, the Lite means that it doesn’t come with “bloatware” and will allow me to be up and running as soon as the SD card image is deployed. A link to Raspbian Jessie Lite is:

Node JS:

The installation for this is simple, run the following line:

sudo apt-get install nodejs


MongoDB is a bit harder to install on Raspbian than NodeJS. So use the following instructions (taken from: :

  1. wget
  2. sudo passwd (change the SU password)
  3. su
  4. adduser –firstuid 100 –ingroup nogroup –shell /etc/false –disabled-password –gecos “” –no-create-home mongodb
  5. cp -R mongodb-rpi/mongo /opt
  6. chmod +x /opt/mongo/bin/*
  7. mkdir /var/log/mongodb
  8. chown mongodb:nogroup /var/log/mongodb
  9. mkdir /var/lib/mongodb
  10. chown mongodb:nogroup /var/lib/mongodb
  11. cp mongodb-rpi/debian/init.d /etc/init.d/mongod
  12. cp mongodb-rpi/debian/mongodb.conf /etc/
  13. ln -s /opt/mongo/bin/mongod /usr/bin/mongod
  14. chmod u+x /etc/init.d/mongod
  15. update-rc.d mongod defaults
  16. /etc/init.d/mongod start

To make my life easier, I’ve added the following two lines to my .bashrc

  • sudo /etc/init.d/mongod start
  • export PATH=”/opt/mongo/bin:$PATH”