-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
About current features and abilities #12
Comments
Hi, Louis, i) I am not sure why you have 3 project there, is the api not part of the electron app (i.e. nestJS app)? if so, that is correct. keep in mind that build you project only required when you ready to package you project, otherwise, serving you project is the way to go (more info below). ii) Correct, in development you serve you app locally (frontend and backend), it allows you (along other things) continues builds while you update you code. You can use iii) Yes, It is implemented, you just have to pass --obfuscate to you command. I recommend using iv) Yes! If you will update Best, |
:o
Thanks a lot!! |
I hope that answer you questions, |
|
Well, I assume you can build you api , copy the compiled output into your main process app (or by adding the api dist folder to the maker config file), and initialize the server when the app is initialized.
In the docs, when I say 'backend' I mean the main process of electron. I think electron application are unique at that matter.
I think that is possible, but you will have to experiment it as i explained in the first bullet, I didn't though that is a needed feature. I would be happy to learn more about it if you have some material about that topic. |
|
Great, keep me posted if you succeed. By default, make ignore source map files and prune you node modules, it also handles rebuilding native modules for electron.
I have configured a schema that validates the options file so only valid options will be used.
All the setting that you see in |
I will close this issue for now, feel free to continue the conversation. |
Hi, It's able to fork a NodeJS process and use it to run NestJS as API server as of now.
|
Hi,
What does the project structure look like?
|
Hi, Here's my code @https://github.com/LouisSung/tmp-nx
BTW, I'm facing another issue is that I can get random port and apply it to NestJS easily, but haven't found any way set up Angular. So I just hard code it now.
I'd like to!! But I think I haven't done it right yet QQ
|
Hi,
nx build app --prod && nx build api --prod && nx build standalone--prod && nx run standalone:package
to build a standalone executable. (ps: I usenx run standalone:make
now)./dist/packages/standalone-linux-x64/standalone
to run the app rather thannx serve standalone
(ps:./dist/executables/linux-unpacked/app
)nx serve
one seems like under the dev mode rather than the prod mode?ng serve app
andng serve api
(as issue Electron running empty app #10 discussed)nx build app --prod
manually so that Electron can get these pre-processed files?nestjs/nest#910
) but seems there's no official support after thenjlongster/electron-with-server-example
, but I haven't gave it a try yetThe text was updated successfully, but these errors were encountered: