angular.js - 用web技术做桌面应用数据本地+云端有什么成熟的架构吗?
给我你的怀抱
给我你的怀抱 2017-05-15 17:12:25
0
3
636

目前有一个这样的项目需求:
1.一套门店管理系统,要求是windows桌面版,暂时可以不考虑跨平台;
2.要求系统可以离线使用,即数据本地存储,系统使用不收网络连接影响,但是又要有云端存储数据的需求,网络环境好的时候自动同步数据到云端服务器;

现有技术团队都是只有web开发经验,经调研web架构做桌面开发目前用的多的是electron和nw.js,用过的朋友可否给点建议,这里面坑多不多,还有数据存储和同步用什么解决方案呢?

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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!