TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Teach Me Electron.js

4 点作者 Abhinav2000超过 4 年前
I&#x27;m really interested in learning Electron.Js for cross platform apps, but the official documentation is a bit hard to follow.<p>Any help would be appreciated! Are there any good tutorials? Is it possible to &quot;lockdown&quot; the Google Chrome engine in our electron apps so that future chrome changes don&#x27;t break our apps? What is the process of developing - how do we launch our apps, compile our apps, change them and re launch?<p>I&#x27;m such a newbie in this space, any help would be much appreciated.<p>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 :)

4 条评论

auganov超过 4 年前
&gt; Is it possible to &quot;lockdown&quot; the Google Chrome engine in our electron apps so that future chrome changes don&#x27;t break our apps?<p>Don&#x27;t upgrade the Electron version? Electron bundles it&#x27;s own chromium. It won&#x27;t auto upgrade on you unless you bump the Electron version.<p>&gt; What is the process of developing - how do we launch our apps, compile our apps, change them and re launch?<p>If most of your code runs in the renderer process all the standard web reloading techniques should work similarly.<p>If you change the main process js you may have to restart or find some specific solution. But you probably won&#x27;t be doing much in the main process.<p>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&#x27;t use any Electron specific features unless you need them and porting to web should be trivial.
评论 #25469572 未加载
laptop-man超过 4 年前
If you like go I&#x27;d recommend webview for go. Lot less bloat and seems viable. (Just started going though make some apps to test)<p>Other than that iirc there&#x27;s tutorials on electron kn their repo
评论 #25469645 未加载
评论 #25460660 未加载
dave_4_bagels超过 4 年前
No.
codegladiator超过 4 年前
try out quasar.dev
评论 #25456789 未加载
评论 #25469641 未加载