[ ] Regression
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
NestJS is a good server framework to build apps and API. But I would like to use all power it has on a Electron solution. Is there some documentation of it?
For Tooling issues:
- Node version: 10
- Platform: Mac OSx
Why would you like to use Nest with Electron? I mean, why not a client-side framework?
To build make possible create an app that can be installed both on server and on desktop.
You can strip apart all the server related stuff so you only get the DI / architecture as I've done here:
https://github.com/marcus-sa/zeus/tree/master/nest
@marcus-sa approach should be possible in the future without doing it yourself. See issue #531.
@BrunnerLivio I could do a PR.
@marcus-sa maybe align with @kamilmysliwiec. This is a major change which will break every dependant application. I could imagine he won't accept any PR of this size. But it's really cool you've proven that it is feasible to strip out just the DI / architecture.
Also post your repo over at #531. People should be interested about your implementation :)
@BrunnerLivio yeah, but I didn't update any of the server related stuff, so I've actually gone ahead and forked the repository and then coded a proposal of how the new server architecture could work.
https://github.com/marcus-sa/nest/tree/feat/usage-everywhere/examples/02-server
I suggest tracking this feature at #531. @marcus-sa feel free to create a PR, would love to see the approach.
@kamilmysliwiec I decided to code my own instead as its using Inversify, which makes 3rd party module creation a lot easier.
I hope you don't mind me sharing it, but if you want a solution @calebeaires this is probably the closest you're gonna get when using the same module architecture as Nest/Angular.
https://github.com/marcus-sa/one/tree/master/examples/electron
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Why would you like to use Nest with Electron? I mean, why not a client-side framework?