Skip to content

Using the nodejs Timestamp Checker

rbackhouse edited this page Aug 27, 2011 · 3 revisions

Using the nodejs Timestamp Checker

I have provided a example timestamp checker that runs in nodejs. It depends on the "node-static" library for static file serving. You can install it with "npm install node-static".

To Setup

  1. Download the https://github.com/zazl/lsjs/tree/master/server/nodejs/lsjsserver directory structure to your preferred node_modules directory.
  2. Download the https://github.com/zazl/lsjs/blob/master/server/nodejs/lsjsserver.js file and place in in a directory where you plan to run the server
  3. Create an application directory and place all your web resources within it including lsjs.js.
  4. Run the server using a command like this : node lsjsserver.js
  5. You should see a message like : lsjs server running
  6. The server will be running on port 8080.
  7. When configuring lsjs make sure to set the timestampUrl property to "./checktimestamps".