Book Image

Internet of Things Programming with JavaScript

Book Image

Internet of Things Programming with JavaScript

Overview of this book

The Internet of Things is taking the tech world by storm, and JavaScript is at its helm. This book will get you to grips with this exciting new technology. Where do Node.js, HTML5 and Windows 10 IoT Core come in with JavaScript and IoT? Why Raspberry Pi Zero rather than Arduino? How do you configure and build an IoT network from scratch? All your IoT JavaScript questions are answered in this book.
Table of Contents (15 chapters)
Internet of Things Programming with JavaScript
Credits
About the Author
www.packtpub.com
Customer Feedback
Preface

Configuring Node.js on a computer as a web server


Node.js is an open-source, cross-platform runtime environment for developing server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, and Linux.

Node.js also provides a rich library of various JavaScript modules that simplify the development of web applications using Node.js to a great extent.

In the last section, we configured Node.js in Raspberry Pi Zero, now in this section we will do the same thing using a Windows operating system and configure our web server Node.js running on it.

The main purpose of this section is to explain how to control our Arduino boards from a web server running in the Node.js framework. For that, it's important to install it; our system will run on Windows computer.

In this section, we will explain how to install Node.js in Windows.

Downloading Node.js

First we need to download Node.js for Windows 64 bit - it depends...