V
V
volcanocoder2014-01-15 07:46:34
JavaScript
volcanocoder, 2014-01-15 07:46:34

Are there solutions for developing an HTML5 + JS offline application using a database distributed as a file?

To work, including offline, you need to make an HTML5 + JS application, while taking the rendering engine and js, for example, from Chrome, and to remove browser mode restrictions (mainly related to access to the file system) use something ... I don’t know Let's say NodeJS. And an essential requirement - since the database will have to be distributed along with the application, support for working with something like sqlite is needed. As an example, I can give, for example, what the history looks like in Chrome. In the "Search in history" field, enter your query, and somehow, using a certain file stored on disk, it finds all the pages that contained this query, surrounding the query text itself with some context, and sorting by date. Here I want to do about the same application. (True, there is no pagination in Khromov's history,
It seems there is Node-webkit, but there is no such type of support for working with databases. The choice of databases is small. The documentation for NeDB says that it will keep the database in memory (I don't need it), like 20 MB for 10000 documents of 2 KB each. But after all, in the Chrome database, each page was on average, say, 50 KB, and there could be many thousands of them, and its search does not eat up any significant memory from the system!
And what to do, are there any existing solutions for this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Zheltyakov, 2014-01-15
@VitaZheltyakov

Application Cache + LocalStorage

B
BuranLcme, 2014-01-17
@BuranLcme

node-webkit doesn't support IndexedDB? Plain Chrome supports. If it does, then the question is about the required volumes of the database.
Although I did not understand about node.js. Will the user also have to install an application based on node-webkit and node.js? then, at the same time, install mongoDB, or something like that. NodeJS is great with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question