Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building Desktop Application W/ Electron

Building Desktop Application W/ Electron

Getting started with Electron, Javascript is taking over the desktop world. in this presentation, I share my experience with electron for building enterprise level software.

Yassine Tasfaout

February 02, 2018
Tweet

More Decks by Yassine Tasfaout

Other Decks in Technology

Transcript

  1. electron() Published by GitHub 2013 ELECTRON A framework for building

    cross-platform applications using web technologies. {Chromium Shell Node Engine Electron | APIs
  2. electron().components Electron is not just a chrome window Main Renderer

    App Life Cycle Web Page IPC - Interprocess Communication Browser Window Menus Nodejs - All it’s goodies Dialogs IPC - Interprocess Communication DOM - Document Object Model Nodejs - In The browser Remote - Main Process Modules Renderer
  3. electron().demo Let’s create an electron app Install Electron Via npm

    Setup Files Structure [Bare Minimum] Start Coding
  4. inProduction().front To build our frontend we used Angular JS ✓

    Rich Interactivity SPA ✓ Great Separation of Concerns Pros Cons • Can get slow in large apps (Watch out The Watchers and Digest Well )
  5. inProduction().api To build our backend we went with PHP &

    NodeJs ✓ Extensive Abstractions ✓ Well Documented ✓ Team Comfort Pros Cons • Does not support web sockets (Out of the box) • Big Footprint ✓ Minimal & Unopnionated ✓ Event Driven ✓ Web Sockets Implementation 
 (Socket IO) Pros Cons • No team comfort
  6. onDestroy() Takeouts ✓ There is no silver bullet system ✓

    Your team comfort before yours ✓ Always try new technologies ✓ Keep Humble