I’ve been working on an app for around a week now, and it’s pretty much my first time using Electron seriously, this is a personal project mostly for learning purposes, loving it so far!
To make my question make sense I’ve to give a bit of the information about the app first, here it is: the first intention of the app is to be a basic text editor with ability to have multiple tabs (kinda like Notepad++ does it), however each tab will have more input fields to it than just text editing (for example name, number, name, time spent and description).
So far I’ve the tabs generated with VueJS and Bootstrap together and the app also does some requests (using requestJS) on the front-end scripts, all pretty simple.
However, I am wondering if this is a right/reasonable approach in your opinion. I am basically not using the main.js at all - it just opens the main window and the rest is done kind of on the front-end. Even my whole app is just 1 html file and intend to keep it kinda of SPA way. I’ve checked all the docs on Electron, but still don’t feel confident doing more in main.js as I think front-end is sufficient, or would it make more sense to generate tabs and etc via that main process instead somehow if possible? Would that be less resource heavy or a better approach when it comes to Electron development?
Please let me know if you need any more details on anything, will be happy to discuss everything, thank you for your time!