/pagehit-file

A page hit counter service which saves data to files.

Primary LanguageJavaScriptMIT LicenseMIT

PageHit (file)

A page hit counter service which saves data in memory and backs up to a file every 10 seconds.

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: