5 ms·
Ask HN: Teach Me Electron.js
I'm really interested in learning Electron.Js for cross platform apps, but the official documentation is a bit hard to follow.
Any help would be appreciated! Are there any good tutorials? Is it possible to "lockdown" the Google Chrome engine in our electron apps so that future chrome changes don't break our apps? What is the process of developing - how do we launch our apps, compile our apps, change them and re launch?
I'm such a newbie in this space, any help would be much appreciated.
I really believe in the power of Electron -- even though it can be bloated, it lets us use the power of web browsers in our development. It also makes it easier to transition to a full blown web app later down the track. To me, its amazing :)
- laptop-man 6y agoIf you like go I'd recommend webview for go. Lot less bloat and seems viable. (Just started going though make some apps to test) Other than that iirc there's tutorials on electron kn their repo
- colesantiago 6y agois this production ready?
- laptop-man 6y agoIts "production" ready as there's minimal bugs and they are not actively developing new features. Docs are extremely thin tho.
- Abhinav2000 6y agoThanks, will have a look
- auganov 6y ago> Is it possible to "lockdown" the Google Chrome engine in our electron apps so that future chrome changes don't break our apps? Don't upgrade the Electron version? Electron bundles it's own chromium. It won't auto upgrade on you unless you bump the Electron version. > What is the process of developing - how do we launch our apps, compile our apps, change them and re launch? If most of your code runs in the renderer process all the standard web reloading techniques should work similarly. If you change the main process js you may have to restart or find some specific solution. But you probably won't be doing much in the main process. The development workflow can be nearly identical to web dev. The most notable difference is you have access to Node APIs from the renderer process. Makes some things easier but also has security implications. Don't use any Electron specific features unless you need them and porting to web should be trivial.
- Abhinav2000 6y agoThanks - very helpful!
- codegladiator 6y agotry out quasar.dev
- laptop-man 6y agoquasar is great, love their docs!
- Abhinav2000 6y agoThanks
- dave_4_bagels 6y agoNo.