These are NW.js, which we covered a few months ago, and the newer Electron, which we are going to use today (see the differences between them here). There are two popular open source projects which make this possible. ![]() Today you can create desktop apps using the already familiar HTML, JS and Node.js, then package it into an executable file and distribute it accordingly across Windows, OS X and Linux. With our output files now inside the dist directory, we need to update our npm scripts to match.Web applications become more and more powerful every year, but there is still room for desktop apps with full access to the hardware of your computer. Npm install -save-dev electron Electron (main) entry point // src/electron.js const It will be virtually identical to the official Electron First App tutorial and the Electron Quickstart repository.Įlectron has two separate processes: a main process, which is Electron itself, and a render process, which is essentially a web page that Electron loads in a Chromium-based browser. Initialize an empty Electron projectįirst, we need a vanilla Electron project. We’ll start with a basic Electron project and progressively build it into an enterprise-ready solution. Here we will explore an opinionated approach to setting up Electron: TypeScript, React, and Webpack. ![]() We’re long-time users of Electron at SitePen and have previously talked about Setting up Electron with Dojo. ![]() It is cross-platform and is built using the same web technologies that you probably already know. If you need to build a desktop application today, Electron is an increasingly common choice.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |