-
Notifications
You must be signed in to change notification settings - Fork 10
Using the nodejs Timestamp Checker
rbackhouse edited this page Aug 27, 2011
·
3 revisions
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".
- Download the https://github.com/zazl/lsjs/tree/master/server/nodejs/lsjsserver directory structure to your preferred node_modules directory.
- 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
- Create an application directory and place all your web resources within it including lsjs.js.
- Run the server using a command like this : node lsjsserver.js
- You should see a message like : lsjs server running
- The server will be running on port 8080.
- When configuring lsjs make sure to set the timestampUrl property to "./checktimestamps".