Chapter 2: Build a Simple Page Counter Service with Node.js
by Craig Buckler
You understand what Node.js is. You’ve read what it can do. Starting work on a real project is the best way to progress your Node.js knowhow!
This tutorial describes how to build a simple page counter service. Any page can use it to display “this has been viewed X times” just like HTML developers did twenty years ago.
The service will be developed using the standard Node.js APIs to demonstrate concepts such as HTTP handling, URL parsing, storage, and file manipulation. No pre-built, third-party modules or applications will harmed in the production of this project: we’re on our own!
Prerequisites
Download and install Node.js on a platform of your choice. Windows, macOS, ...
Get Your First Week With Node.js, 2nd Edition 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.