I’m working on a project where any new comment posted gets tagged with a timestamp in milliseconds (local time). My issue was when I display the comments but I want to compare the saved timestamp with the current time. I need to be able to still keep the saved timestamp and show a humanized version to […]
Category: nodejs
This is a simple example of using node.js, nano (couch db modules) and the express framework to retrieve some data from a couch instance. Setting up the modules We will be using a couch instance from www.iriscouch.com. The database will be named “employees”. var nano = require(‘nano’)(‘http://lugomatic.iriscouch.com’); var db = nano.use(’employees’); We need to include […]