© Indira Knight 2018
Indira KnightConnecting Arduino to the Webhttps://doi.org/10.1007/978-1-4842-3480-8_2

2. Creating a Web Server

Indira Knight1 
(1)
London, UK
 

To get started on the web side of connecting Arduino to the Web, it is useful to have a basic understanding of web technologies. This chapter will go through some of the principles, including what a web server is, how a URL is constructed, what routes are, and what Node.js is. It will then get practical, and you will learn how to create a web server with Node.js and send data back and forth from the server to a web page. It will cover Node.js, ejs, and socket.io.

What Is a Web Server?

A web server serves pages to web browsers; it also processes information and stores data and assets for the ...

Get Connecting Arduino to the Web: Front End Development Using JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.