New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thoughts on using Lore with Electron? #125
Comments
@bringking have you ever used Electron? I'm going to provide my thoughts below, but feel free to weigh in if you have a better answer. @dustintownsend I haven't used Electron yet, but it does pique my interest. Personally, I don't have real experience developing for native mobile or modern day Mac or Windows, in part due to a lack of genuine need, and in part because I feel browser-based development already has enough complexity without trying to split my focus across a second or third technology set. That being said, I'm very interested in technologies like React Native and Electron that have the potential to create a universal development experience, and I expect to shift my focus in that direction once I'm satisfied that Lore solves all my browser-centric development concerns. So while I haven't used Electron personally (yet) I can at least weigh in on where I think the problem areas might be in getting Lore to work with it:
Other than that, Lore is a pretty straight implementation of React, Redux and React-Router, so if those technologies work in Electron (such as some of the Redux examples) I can't think of anything else in the framework would cause problems. If you do try it out, I'd be curious to hear your thoughts, or how quickly it blew up : ) And when I do try Electron out, I'll weigh in again with more specific and concrete feedback, or post an example app if I can get it to work (even if it's only on a branch). |
@jchansen I haven't used Electron, but from what I understand about it, it uses a Chromium window for the UI, so can't think of a reason why Lore wouldn't be a drop in for an Electron project. |
I don't think any of those will be an issue with Electron. I'm currently trying to fully understand the workings of webpack, but there are examples of using webpack with Electron. From my current understanding I would assume it would just be a matter of getting the webpack config set-up correctly. The only issue I've run into with webpack and electron is properly handling native modules, since they need to be built for the target platform (windows, osx, linux, 32/64bit). But, I think that is working with adding those modules to the exclude in webpack config. Electron is basically two components. The renderer and the main process. The renderer is the view/browser and is Chromium! The main process is just a standard node process. One major difference from the browser developer would be you can actually write node code in the renderer process, but that can be turned off as well. My background is opposite of you basically. I come from a desktop background (and some iOS/swift for the last year). After 9 or 10 years I was ready to get off of .NET and start using some of the more interesting things I've seen from Node and JS. But, we still have a need for desktop apps (in an enterprise setting). So, I took a risk recently to update one of our applications from .NET to Electron. So far it is going well, but I see a need for something like Lore to reduce the boilerplate. And I really like CLI interfaces for generating code. I recently tried the create-react-app generator which I though was pretty cool. It made it easier for me to experiment with React. For now I'm just studying your code and trying to learn as much as I can from it. I will attempt to incorporate it into Electron and see how it works out at some point. Right now I'm working on learning and setting up Redux Saga and that is taking up a lot of my brain power. For some reference you can see this nice Electron boilerplate for using React, redux, and webpack! https://github.com/chentsulin/electron-react-boilerplate Exciting stuff from you guys. Thanks for sharing. I look forward to following and contributing to Lore. |
Yesterday on YouTube I came across @jchansen presentation at the Phoenix ReactJS meetup. I was originally watching the Redux Saga one and ended up watching the Architecture one and learned about Lore.
I'm curious if anyone here had any thoughts on attempting to use Lore with an Electron project?
The text was updated successfully, but these errors were encountered: