I normally am used to using JavaFX for Desktop apps as a hobby but I've found myself needing to use a Web app for my next project, and I'm not sure how to get everything to fit together.I'm essentially trying to make a dashboard that posts data to a Mongo database on a LAN network. I was looking for boilerplates that utilized Express, Mongoose, React, Typescript, or Mongoose and came across this, which I plan on using.My issues comes from the fact that the database needs to be flexible and the Mongoose model, HTML form, and Plotly graphical displays need to be swap-able with other configurations, depending on how the users wants to store and view information from the database. What I'm struggling to figure out is I need this to happen through the web app so the user doesn't have to manually edit files. After inspecting the production build of the webapp's server, I realized it would be more complicated since I'd have to swap the modules before it is built.While thinking of a solution to this problem, I thought about trying to make a GUI where you could select the path to the modules the end-user created (and other various configurations) and when you clicked run / start, the Electron app would build the client / server environment and run the server script.This leads me to the questions of is this even the right approach? If so, is it possible to bundle the server / client files from the boilerplate into the Electron app installer's bundle to be extracted to a directory during install? Do I have low level access with Electron to be able to run node scripts located at, say, Program Files or AppData? How would I deal with requiring things such as Git, NodeJS, MongoDB, etc to be installed?I should also mention my main constraint is while most people using this would have at least basic programming knowledge, some won't and may not even be tech savy (they would be using modules others made).What are all of your thoughts on this? Thanks!
Submitted December 08, 2019 at 06:57PM by QuantumPie_
No comments:
Post a Comment