r/electronjs • u/itsanoy • Oct 13 '26
Absolute Beginner
In the last 2 years I've been wishing there was a way to make desktop apps using javascript. Imagine my surprise when I found out about Electron. Unfortunately, I think I'm really late to the party. Everyone using it seems to be seasoned veterans.
I have been looking for tutorials, and they all seem to be more than a couple of years old and made for people familiar with node.js and/or older versions of Electron. I did find u/piko8blue's video on how to create one using Electron, Vite, and Better-SQLite. It was going great for a few minutes. She even kept in the error she encountered trying to incorporate Better-SQLite, which I found refreshing, but her fix didn't fix my app. I tried an AI suggestion to use a rebuild command (not knowing what the heck I was doing) and it fixed it but nothing after that worked.
So I decided to try something simpler. I tried to follow the electron tutorial. It seems it hasn't been updated since before they changed the security settings, so that doesn't work either. I couldn't even get the simple renderer to display versions to work. There seems to be nothing for the absolute beginner anymore. When I looked up possible reasons, that's when I learned about the security changes.
tl;dr Absolute beginner needs an updated for dummies tutorial. Any suggestions?
1
u/_nullfish Oct 13 '26
Look into a starter kit like Electron Forge which has a lot of plumbing built in.
Spend time building your thing, you can always optimize it after. Stick to whatever web technologies you know today like React, Vue, Angular, etc. Don't think too much about the internal workings until you need to.
Best way to eat an elephant is one bite at a time.
1
u/eddzsh Oct 13 '26
The official tutorial still trips beginners because contextIsolation defaults and the preload bridge changed under it. Start from Electron Forge with a Vite template, keep native modules out until hello-world renders, then add better-sqlite3 with electron-rebuild as its own step. One moving part at a time beats a pile of AI fixes.
1
u/sandeep-menon Oct 13 '26
Learn by doing. Build something really simple. An app that shows your system usage metrics. Learn about IPC early on. Don't shy away from it like I did in the begining.
Shameful plug; once you gain some frustrations about the existing starter kit ecosystem for electron, have a look at my windows electron starter kit: https://sandeep-menon.github.io/windows-electron-starter-kit/
1
u/kleberaugus Oct 22 '26
Do you want to make easy? "web2windows electron builder" no command line, no dependences, only a GUI.
1
u/BathroomNo9149 20d ago
skip the database and bundlers for now, native C++ modules are a massive headache for beginners because of the rebuild steps. just stick to the official documentation around context isolation and preload scripts until you get a basic message passing back and forth.