Electron api client file system7/4/2023 ![]() All rights reserved.Ĭonst `) Īwait (this.account) Ĭonst account = this.account || (await this. How does electron provide these features Electron provides these features through Node through require, or generally module-loading. Think file system access, os access or c++ addons. Next, create file named main.js and add the following code: /* Electron gives you access to electron / node apis that allow you to have more powerful functionality in your web applications. Please sign-in to see your profile and read your mails ![]() Add the following code there: Įlectron sample app calling MS Graph API using MSAL Node To initialize the main script, create an empty file named main.js in the root folder of your project. Inside this folder, create a file named index.html that will serve as UI. During execution, Electron will look for this script in the main field of the app's package.json config, which you should have configured during the app scaffolding step. Npm install -save-dev create a folder named App. ![]() Npm install -save isomorphic-fetch bootstrap jquery popper.js Platform type: Mobile and desktop applicationsĬreate a folder to host your application, for example ElectronDesktopApp.įirst, change to your project directory in your terminal and then run the following npm commands: npm init -y.Supported account types: Accounts in my organizational directory only (single tenant).Use the following settings for your app registration: Electron uses GN as a meta build system to generate files for its compiler, Ninja. Visual Studio Code or another code editorįirst, complete the steps in Register an application with the Microsoft identity platform to register your app.Electron applications serve static content using the local file. ![]()
0 Comments
Leave a Reply. |