Search code examples
mongodbelectronnwjsdatabase

How and which database to use with NWjs offline windows app to store data


i made a simplest application in nwjs which just takes an input of name . now i can't store this value permanently because app is not connected with any database .
i know about mongodb but don't know how to integrate with javascript app.
i watched some tutorials how to use mongodb with apps but they in tutorials always use cmd to first start server (now a general software don't require , user to start servers manually etc).
Please help me if there is a way to store, fetch and perform other operations on data offline. what i am missing ? Thanks


Solution

  • You may be looking for:

    • NeDB, a Mongo-like offline in-memory database
    • LinvoDB3, same than NeDB, but not in-memory (slower, but more scalable in terms of size)
    • LocalStorage a Web API