1

Running a node.js server in Windows. I need the server to auto launch on startup-boot, followed by launching a standalone application. can anyone tell me the best way of accomplishing this?

Captain Obvlious
  • 19,754
  • 5
  • 44
  • 74
user2005121
  • 437
  • 1
  • 6
  • 16

1 Answers1

0

You'll want to run node as a Windows Service. Services start right after boot, before login.

As far as launching the standalone app, the answer depends on what it is. If it's a GUI app, you'll need to configure Windows to automatically log in, then you can just put it in the Startup folder. If it doesn't have a GUI, you can just use child_process to spawn the app from node.

josh3736
  • 139,160
  • 33
  • 216
  • 263