Skip to content

Content Tagged "electron"

Page 1 of 1

Content Tagged "electron"

Consistent Testing electron-settings

April 6, 2017Categories: Software, Tutorial
TL;DR : Delete the settings file before starting the test. Today I implemented a simple wrapper over the electron-settings functionality to gibe me access to a set of properties via get/set methods. My scenario is simple: I have a property named path.backup and I want to be able to get , set…

Make Electron Work with Sqlite3

December 16, 2016Categories: Software, Tutorial
The other day I tried to integrate knex with a SQLITE3 back-end. Unfortunately, the instant I've tried to instantiate knex , I've got a lot of errors . After getting rid of them, I found that I can't get sqlite3 to work at all, even though I've checked the installation and it was OK (got the…

Make Electron work with Knex.js

December 16, 2016Categories: Software, Tutorial
To make my life easier (and because I hate writing SQL statements), I thought of installing an ORM. After some search, I've decided to use knex . Unfortunately, the moment I integrated it into my app, webpack started generating errors like: ERROR in ./~/knex/lib/dialects/maria/index.js Module not…

Electron AppSend Menu Command to Angular App

December 9, 2016Categories: Software, Tutorial
TL;DR: In the main process use mainWindow.webContents.send('cmd') and in your Angular component ( renderer process) bind it to a method with ipcRenderer.on('cmd', this.open.bind(this)) (where open() is a method). I need to make my angular app work when a menu item is clicked (think: I…

Electron and WebPack - Live Reloads

December 2, 2016Categories: Software, Tutorial
I wanted to create a skeleton with Electron, Angular 2, capable of live reload while in development. I've settled on the following framework: Electron (d'oh!) Angular 2 Angular CLI (because it makes it easy to generate boilerplate code) SASS (SCSS in fact) Webpack 2 and Babel After a lot of trial…

Electron App. Why angular-cli?

December 2, 2016Categories: Software, Tutorial
The decision has been made for me since I'm new to Angular in general and the CLI offers a package deal particularly where code generation and initial package management is concerned. There's also the boon of webpack, which is used as engine. Although the balance tilts heavily in favour of using…

Debug Electron in VS Code

December 2, 2016Category: Software
TL;DR: You need to follow the server (electron) client (VS code debugger) approach. Be aware of OS specifics! So far, my approach towards development/debugging would be to write some code, test it, rewrite, test... all with a bunch of console.log() statements. That's not efficient at all and…

Rise and Fall of WebPack Dev Server in My Project

December 1, 2016Category: Software
Disclaimer: This is a log of my journey developing an electron app. I'm working at a small electron app and I was experimenting with webpack-dev-server , so I can try to do live reloads. First, I've started the app as a web app (no electron dependencies whatsoever). At this stage, running: off…

All tags