angular.js - Is there any mature architecture for using web technology to create desktop application data locally + in the cloud?
给我你的怀抱
给我你的怀抱 2017-05-15 17:12:25
0
3
666

Currently there is such a project requirement:
1. A store management system, which is required to be a Windows desktop version. Cross-platform is not considered for the time being;
2. The system is required to be used offline, that is, the data is stored locally. , the system is not affected by the network connection, but there is a need to store data in the cloud. When the network environment is good, the data will be automatically synchronized to the cloud server;

The existing technical team only has web development experience. After research, the web architecture used for desktop development is currently electron and nw.js. Can friends who have used it give some suggestions? Are there many pitfalls here? What solutions are used for data storage and synchronization?

给我你的怀抱
给我你的怀抱

reply all(3)
伊谢尔伦

The local data storage has nedb. If you want to synchronize the data, you can check it yourself and synchronize it manually. Automatic synchronization is not practical. If it’s a trap, it’s okay. There are no fatal bugs and it basically meets your needs

洪涛

Recommendedelectron,最近用electron写了一些小项目,配合vue,写起来很方便。相比与nw.jsIt seems to be updated more frequently. One problem is that the packaged App is slightly larger, about 100m.

Local storage has been usedlocalStorage,但是存储空间有限,node使用sqlite3It should be enough for storage. Here is a Q&A with an introduction.

我想大声告诉你

Recommend electron, nw.js is unstable and may cause problems when packaging.

https://github.com/alcat2008/...

This is the scaffolding we are using now, you can try it out.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template