How to port a Javascript Web server to a Windows executable?

Asked

Viewed 126 times

0

I am new to Node.js, and developed a server using express to send files between computers on the same network, but I can only start the server on the computer that will receive the file if it has Node installed. I wonder if there is any way to start the server without having Node installed, for Windows platform.

  • Running Node without having Node installed is like running windows without installing it. I’m not sure I quite understood the question... can you give a practical example or explain it better?

  • It would basically create an executable for windows, starting from this application. Intended for the end user

  • 3

    I think the problem was the choice of platform in the case. If the intention was to make a server executable, probably a more complete compiled language would be better than a Runtime JS. Not that it’s impossible, probably someone will do something like that (just like Electron uses a Node.js Embedded). However, it ends up leveling down technologically. But if it’s just for experience and learning, it’s cool.

  • Yes, the idea is just learning :)

1 answer

1

To create desktop applications in Node there are two widely used tools currently: http://electron.atom.io and the https://nwjs.io/

Electron for example was used to create the Atom editor, Slack, visual studio code...

The only problem in your case is that you should have started developing with one of these two from the beginning. Carry your code that will take more work.

  • Hello Philip, Thank you for the reply, I will give a search on these two tools, Thank you very much!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.