
Run command to create an app.js file: touch app. In this guide, the protocol we will use will be ' electron-fiddle:// '. By the end of this tutorial, we will have set our app to intercept and handle any clicked URLs that start with a specific protocol. Create another file, this time an HTML file called index.html. Now we will create our first desktop app using Electron.
#Electron api tutorial code#
Name it app.js and keep all the Electron related code inside of it. This guide will take you through the process of setting your Electron app as the default handler for a specific protocol. We have created a package.json file for our project. To configure electron inside Angular project, create a new file in the root of the Angular project. Get inside the project directory by running the following command: # CREATE electron-angular-app/README.md (1035 bytes) # CREATE electron-angular-app/.editorconfig (246 bytes) # CREATE electron-angular-app/.gitignore (629 bytes) # CREATE electron-angular-app/angular.json (3537 bytes) # CREATE electron-angular-app/package.json (1293 bytes) # CREATE electron-angular-app/tsconfig.json (435 bytes) # CREATE electron-angular-app/tslint.json (1988 bytes) # CREATE electron-angular-app/browserslist (429 bytes) # CREATE electron-angular-app/ (1032 bytes) # CREATE electron-angular-app/ (210 bytes). ? Which stylesheet format would you like to use? CSS This tutorial is designed for those learners who aspire to build cross-platform Desktop apps for Linux, Windows and MacOS. ? Would you like to add Angular routing? No Run command to set up Angular project, Angular CLI will ask you few questions answer those questions as per your choice. find Takes the query and returns the objects. remove Takes the query, and object of options, and removes from the database. insert Takes the new item as an object and adds it to the database. In this step, we are going to build Angular 8 project using Angular CLI from scratch. The main methods that we need just take an object with the properties you want the return item to match, and a callback function for when it’s complete.
