
Electron Projects
Build over 9 cross-platform desktop applications from scratch
- 436 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
About this book
A project-based guide to help you create, package, and deploy desktop applications on multiple platforms using modern JavaScript frameworks
Key Features
- Use your web development skills with JavaScript and Node.js to build desktop applications for macOS and Windows
- Develop desktop versions of popular mobile applications that are similar to Slack, Spotify, and more
- Design desktop apps with automatic updates and real-time analytics capabilities
Book Description
The Electron framework allows you to use modern web technologies to build applications that share the same code across all operating systems and platforms. This also helps designers to easily transition from the web to the desktop. Electron Projects guides you through building cross-platform Electron apps with modern web technologies and JavaScript frameworks such as Angular, React.js, and Vue.js.
You'll explore the process of configuring modern JavaScript frameworks and UI libraries, real-time analytics and automatic updates, and interactions with the operating system. You'll get hands-on with building a basic Electron app, before moving on to implement a Markdown Editor. In addition to this, you'll be able to experiment with major JavaScript frameworks such as Angular and Vue.js, discovering ways to integrate them with Electron apps for building cross-platform desktop apps. Later, you'll learn to build a screenshot snipping tool, a mini-game, and a music player, while also gaining insights into analytics, bug tracking, and licensing. You'll then get to grips with building a chat app, an eBook generator and finally a simple digital wallet app.
By the end of this book, you'll have experience in building a variety of projects and project templates that will help you to apply your knowledge when creating your own cross-platform applications.
What you will learn
- Initialize Node.js, Node Package Manager (NPM), and JavaScript to set up your app
- Integrate Phaser with Electron to build a simple 2D game
- Improve app quality by adding an error tracking system and crash reports
- Implement group chat features and event handling capabilities using Firebase
- Integrate a WordPress-like rich-text editor into your app
- Build Electron applications using a single codebase
Who this book is for
This book is for JavaScript developers who want to explore the Electron framework for building desktop apps. Working knowledge of modern frontend JavaScript frameworks and Node.js is assumed. No prior knowledge of desktop development is required.
Tools to learn more effectively

Saving Books

Keyword Search

Annotating Text

Listen to it instead
Information
Integrating with Angular, React, and Vue
- Angular, which is backed by Google
- React, which is backed by Facebook
- Vue.js, which is backed by Evan You and its sponsors
- Building an Electron application with Angular
- Building an Electron application with React
- Building an Electron application with Vue.js
Technical requirements
- Git, a version control system
- Node.js with node package manager (NPM)
- Visual Studio Code, a free and open-source code editor
Building an Electron application with Angular
npm i -g @angular/cli@latest
/usr/local/bin/ng -> /usr/local/lib/node_modules/@angular/cli/bin/ng
+ @angular/[email protected]
Generating our Angular project scaffold
- Run the following commands to generate a new Angular project called integrate-angular:
ng new integrate-angular
cd integrate-angular
- If you're asked about routing support, type Y and press Enter:
Would you like to add Angular routing? (y/N)
Y
- Next, if the tool asks you about the stylesheet format, choose SCSS, as shown in the following code:
Which stylesheet format would you like to use? (Use arrow keys)
SCSS
- The output of the preceding code is as follows:

- Check out what the package.json file looks like, especially its general information and the scripts section:
{
"name": "integrate-angular",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
} - The Angular CLI also performs dependency library installation, so all you need to do is run the following command to get your web application up and running:
npm start
- Launch your preferred browser and navigate to http://locahost:4200. You should see a landing page ca...
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
- Building Your First Electron Application
- Building a Markdown Editor
- Integrating with Angular, React, and Vue
- Building a Screenshot Snipping Tool
- Making a 2D Game
- Building a Music Player
- Analytics, Bug Tracking, and Licensing
- Building a Group Chat Application with Firebase
- Building an eBook Editor and Generator
- Building a Digital Wallet for Desktops
- Other Books You May Enjoy
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app