node.js - How to store user data in node webkit(nw.js) desktop app for login -


i want create login desktop app based on node webkit. see tutorial using module called diskdb store user data locally. question it's local storage in each end-user's pc, right? mean if sign in 1 pc can't login in pc? in real product should use mongodb hosted in cloud store user data?

sorry i'm pretty new desktop apps. think desktop app has exchange lots of data database in cloud, implemented direct db manipulation or webservices? or there other ways it.

thanks in advance suggestion!

yes,you right.
if using diskdb or sqlite data stored locally. hence user cannot login desktop, in such caseyou need use database on cloud might ask when local db helpfull, think helpfull data has accessed or repeatedly.for example when user logs in have fetch users details cloud db every time user logs in , hence increases loads on server , network traffic.hence, rid overhead can sync localdb server single time , hence when user logs in fetch user details localdb hence saves load on server , network traffic.
example - skype desktop same way.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -