Skip to Content
Your First Week With Node.js, 2nd Edition
book

Your First Week With Node.js, 2nd Edition

by James Hibbard, Craig Buckler, Mark Brown, Nilson Jacques, James Kolce, Paul Orac, M. David Green, Florian Rappl
April 2020
Beginner content levelBeginner
192 pages
3h 15m
English
SitePoint
Content preview from Your First Week With Node.js, 2nd Edition

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, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Node.js Development

Learning Node.js Development

Andrew Mead
Node.js: Tools & Skills, 2nd Edition

Node.js: Tools & Skills, 2nd Edition

James Hibbard, Michael Wanyoike, Nilson Jacques, Jay Raj, Manjunath M

Publisher Resources

ISBN: 9781098122805Errata Page