4.1 What's the pros and cons for electron
4.1.1 pros
- modern way to develop user interface/interaction(react/redux)
- thousands of packages from npm.js, also has some UI library
- cross placeform
- latest browser feature without compatibility issues
- easy for debugging/crash reporting/auto update/windows installer
- easy to learn and eary to find developers
4.1.2 cons
- app size >= 50MB?
- feature limitation(i.e. touchbar)
- performance
4.3 Difference between Electron and Chrome extension
- Chrome extension is for build web app
- Electron is for build app, more powerful
4.4 How to start a server and use database in Electron
- why you need an server? server is not belongs to an App
- want store some data? just use localStorage/sessionStorage/indexDB like in browser
4.5 Is my app source code protected for decompilation
No, the V8 JavaScript engine is never designed to hide source code.
4.6 Use native npm modules
- native npm modules?(node-sass)
- different v8 version between your system nodejs and electron
4.7 Talk with third part app/cli?(git, imagemagick)