![]() ![]() ![]() ![]() PrerequisitesĪfter creating our Angular project, let's now install Electron using the following commands: $ npm install -save-dev will install Electron as a development dependncy in your project.Īs of this writing, electron v5.0.6 is installed. You will build a simple Electron app that uses an Authorization Server (Auth0) to authenticate users and authorize the app to access protected data from a Resource Server (an external API). Let's now see how we can use Electron and web technologies (TypeScript and Angular) to create a desktop app. cd myExpressApp npm install Run the application. ![]() On your preload.js, add: import Literata from 'electron-fonts/literata' window. Electron fonts packages provide font archives em electron desktop apps. If you are familiar with hybrid mobile development, Electron is quite similar to Apache Cordova but targets desktop systems instead of mobile operating systems.Įlectron is actually an embedded web browser (Chromuim) bundled with Node.js and a set of APIs for interfacing with the underlying operating system and providing the services that are commonly needed by native desktop apps such as: To install all of the applications dependencies, go to the new folder and run npm install. There are no other projects in the npm registry using electron-fonts/literata. You only need to rebuild your code for each target platform.Įlectron simply provides a native container for your web application so it looks and feels like a desktop application. Thanks to Electron that's now possible and you don't have to learn classic programming languages like C++ or Java to build your application, you can simply use your web development skills to target all the popular desktop platforms such as macOS, Linux and Windows with one code base. Electron is actually an embedded web browser (Chromuim) bundled with Node. So you are a frontend web developer - you know JavaScript, HTML and CSS which is great but you need to build a desktop application. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |