jilodocu.blogg.se

Nw.js windows 10
Nw.js windows 10











Run NW.js directly from the command lineĭuring development an app can easily be tested within the NW framework from the command line. Note that the metronome stops if you switch to another browser tab, or if the browser is completely hidden by other windows. The counter increases and a short blip sounds at each counter increase.

nw.js windows 10

The app will now be available at Open the URL in a browser and you’ll see a small counter display. Install the dependencies as usual and start as defined in package.json. Create a Windows desktop program (.exe file)Ĭlone the Git repository for the tutorial at.Create a Mac desktop program (.app file).Run NW.js directly from the command line.There’s quite a lot to go through, so here’s an overview of what’s included in this tutorial: It uses requestAnimationFrame and it generates sound, so it will be easy to demonstrate that with NW.js the requestAnimationFrame timer will keep going even if the app’s window is hidden behind others. The app for this tutorial is a simple metronome. My app however relies on requestAnimationFrame for timing, and I couldn’t use Electron because of an issue in Chromium (the timer stops when the app window is hidden).In the end however NW.js is not that hard to use. NW.js instead or ElectronĮlectron is the better known of the frameworks for creating native applications. I’ve written this tutorial using MacOS 10.14 (Mojave), Ubuntu 18.04 and Windows 10. I hope it can help you to get started using NW.js and to create desktop programs and installers. This tutorial is an overview of my findings.

nw.js windows 10

Nw.js windows 10 how to#

I’m a frontend developer with little experience in creating desktop applications and installers, so it took me some time find all the details of how to set everything up. It works by combining a JavaScript app with Node.js and Google’s Chromium browser engine into a single desktop program. NW.js is a framework for building desktop applications with HTML, CSS, and JavaScript. This is an overview and tutorial of how to create desktop programs for Linux, Mac and Windows using NW.js.











Nw.js windows 10