how to inc a value of a object every day in web application?
I am wrote a web application. Suppose there is many objects(stored in DB), I need inc or dec a value of it at the every 00:00.
And how to deal with it?
There is one way i am thought.
1. run a script at every 00:00 to deal with that.
node.js
mongodb
web-applications
web
If you're on a Unix or Linux system, you can rely on system's Cron utility.
Another good option, if you're using Node.js, is node-cron module, which is very much like system's Cron, but easier to integrate in your application.