Hacker News clone for CouchDB
hckr.it
hckr.it
There's still lots of work to be done, so don't hesitate to contribute :)
I saw you use couchapp, installed with npm. Have you tried kanso http://kan.so ?
There is also erica, a similar couchapp deploying script written in Erlang. That one comes with an ACE on-line code editor (so you can edit your couchapp as it runs).
The difference is that instead of doing the calculation from the "time since submission" (which changes over time and, as you say, won't work with Couch's views which can't emit values as time goes on) it does the calculation using the "created_at" property. In essence the outcome is the same.
Here's the algorithm I use which needs some better documentation :) https://github.com/lmatteis/hckr.it/blob/master/common/util....
I might be wrong, though. It's been a while since I've looked at that part of the code.
There are also a few similarities like max(abs(points+1),1), log base 10...
It's funny to see two different HN clones, both of them coming from Italy :)
Also, this seems to depend on Ruby other than Redis. Which means you probably need to buy a VPS or some cloud hosting and set it all up with Redis and Ruby and other stuff. Lots of overhead if you ask me.
While with hckr.it, you simply push it to a Couch and you're done.
Buona fortuna!