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?
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
Recommended
electron
,最近用electron
写了一些小项目,配合vue
,写起来很方便。相比与nw.js
It seems to be updated more frequently. One problem is that the packaged App is slightly larger, about 100m.Local storage has been used
localStorage
,但是存储空间有限,node
使用sqlite3
It 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.