Skip to content
Page hit counter which saves data in memory.
JavaScript HTML
Branch: master
Clone or download
This branch is even with craigbuckler:master.

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
testpages
.gitignore
LICENSE
README.md
index.js
nodemon.json
package.json

README.md

PageHit (memory)

A page hit counter service which saves data in memory.

This is an example project for the purposes of demonstration only. It is not recommended for production use!

Execute npm start to start a web server at http://localhost:3000/

To test the service, open any HTML page in the testpages folder. A static file server can be started using:

cd testpages
npx small-static-server

Then load any page to test four methods of adding a hit counter:

You can’t perform that action at this time.