JavaScript and Node.js

Node.js is a low-level, highly scalable asynchronous processing platform. Node.js allows you to make apps which can access networks, Internet and operating system (os) file system. The JavaScript v8 runtime used in the Node.js platform which is also used in Google Chrome.

How to make desktop applications using HTML, CSS, and JavaScript

Learn how to make desktop applications out of the very same technologies used in web development.

Creating a basic "Hello World" app in Electron.js

Before creating the main.js and index.html files, we need to discuss the two process types available in Electron. They are fundamentally different and important to understand. Each of these two processes has a specific responsibility within the application.

Creating index.html in Electron.js

We already learned that the renderer processes would display the UI of your application. It will load content and execute it within its own thread. Now we'll create our renderer index.html file inside the same directory where the package.json resides.

Creating GUI for your desktop applications using HTML, CSS, and JavaScript

We’ll create user interface (UI) for our &qout;Duplicate File Finder" desktop app with HTML and style it witch css. It is a very simple interface, just a logo on top with Application name, version number and two button  Add folder and Start search for controlling the app behavior.

Creating GUI for Duplicate File Finder app

In this tutorial we'll make the GUI for Duplicate File Finder and Remover application using JavaScript, HTML, CSS and Electron.js.

Synchronously read, write, append files and read a dir recursively

In this tutorial, we’ll learn how to read, write, and append to files in a asynchronous and synchronous manner. We’re going to write a simple program that grab text from a file, and saves it in a new file. We’ll also learn how to read a dir in a synchronous manner recursively.

Asynchronously read, write, append files and read a dir recursively

In this tutorial, we’ll learn how to read, write, and append to files in an asynchronous manner. We’re going to write a simple program that grab text from a file, and saves it in a new file. We’ll also learn how to read a dir in an asynchronous manner recursively.

fs.Stats – get file information

Lean how to query the status of files using Node.js, returning information such as the file type, file owner, access permission file size, number of links, inode number and file birth, access, change and modify times.

Synchronous vs. Asynchronous and Callbacks

A synchronous function blocks until it completes its operations. An asynchronous function returns immediately and the result is passed to a callback function.

The event loop (queue)

So, if you have functionality that needs to wait on something, such as opening a file, retrieving data from the database, a web response, or other activity of this nature, then blocking the application until the operation is finished would be a major point of failure in a server-based application. The solution to prevent blocking is the event loop.

by BrainBellupdated
Advertisement: