Over the next few pages, we're going to build a simple application that displays the file sizes of any files dropped into the main window or selected via a file dialog. In reality, we wouldn't use the application on its own, but as a basis for uploading images for processing or perhaps as the offline version of a compression application. There are plenty of ways in which we can develop it further—we will touch on some ideas later in the chapter, in the Taking things further section.
In the meantime, let's get started with installing NW.js. Before doing this, we need to avail ourselves of the following tools:
A compression program is needed; on the Windows platform, you can use the in-built capabilities or something such as 7-Zip (http://www.7-zip.org), if preferred.
We will need a text editor; throughout the course of this chapter, we will use Sublime 2 or 3, but any good text editor should suffice if you already have a personal preference. Sublime Text...