Node.js: Install .js project as a Service | Windows Tutorial

Node.js: Install .js project as a Service | Windows Tutorial

Channel:
Subscribers:
278,000
Published on ● Video Link: https://www.youtube.com/watch?v=1smy9yyme1Y



Category:
Tutorial
Duration: 3:52
12,475 views
200


Want a Node script to run 24/7 in the background of your computer, without needing to remember to start it? Don't want any visible signs that it's running? Well, you can set up your project to run as a Windows Service in the background, with the automatic starting ability, as well as other perks of having it run as a Windows Service.

Code:
---------------
var Service = require('node-windows').Service;
var svc = new Service({
name:'Service name',
description: 'Node.js service description goes here.',
script: 'C:\\path\\test.js'
});

svc.on('install',function(){
svc.start();
});

svc.install();
---------------

Timestamps:
0:00 - Explanation
0:20 - Installing node-windows
0:33 - Creating service script for a node project
1:26 - Installing node project as Windows service
2:50 - Uninstall node service on Windows

#Node #Service #Install
-----------------------------
๐Ÿ’ธ Found this useful? Help me make more! Support me by becoming a member: https://youtube.com/channel/UCkih2oVTbXPEpVwE-U7kmHw/join
-----------------------------
๐Ÿ’ธ Direct donations via Ko-Fi: https://ko-fi.com/TCNOco
๐Ÿ’ฌ Discuss video & Suggest (Discord): https://s.tcno.co/Discord
๐Ÿ‘‰ Game guides & Simple tips: https://YouTube.com/TroubleChuteBasics
๐ŸŒ Website: https://tcno.co
๐Ÿ“ง Need voice overs done? Business query? Contact my business email: TroubleChute (at) tcno.co

Everything in this video is my personal opinion and experience, and should not be considered professional advice. Always do your own research and make sure what you're doing is safe.




Other Videos By TroubleChute


2021-09-27How to setup an Android VM/Emulator in Android Studio | Quick Guide
2021-09-25Fix Not available in this source | NuGet Visual Studio Error Guide
2021-09-23UPDATED: Crosshair Overlay on ANY GAME | +Fullscreen | HudSight 2023 [SPON]
2021-09-22How to Gift CSGO Operation Pass | Workaround, Complete Guide 2021
2021-09-21Stop Steam opening Friends & Chat window on Startup + More
2021-09-20Steam Skin\Theme Crash Course | Full Guide | Metro, Dracula + More
2021-09-19Rename/Delete files with long names | Windows Quick Fix Guide
2021-09-18Skinning Spotify Complete Course | Install + More | Spicetify Guide
2021-09-15Windows Update Bypass TPM Error | Windows 11 Guide
2021-09-15Python: Install .py project as a Service | Windows Tutorial
2021-09-14Node.js: Install .js project as a Service | Windows Tutorial
2021-09-13Fix JNI Error in Java/Minecraft 1.17+ | Java 16 Fix Tutorial
2021-09-11Stop hearing mic while recording | Premiere Pro | Full Guide
2021-09-10Change Sequence Start Time | Premiere Pro | Full Guide
2021-09-08Fix 0x00000001 Error | Xbox App | Windows Error Fix
2021-09-07KeePassXC Browser Autofill | Complete Crash Course
2021-09-07KeePass Android + Sync with KeePass PC | Free, Open-Source | Complete Crash Course
2021-09-07Install & Use KeePassXC | Free, Open-Source | Complete Crash Course
2021-09-07KeePassXC TOTP (2-Factor Autofill) | Complete Crash Course
2021-09-07Complete Guide: KeePassXC | Free, Open-Source, Android Sync | Self-hosted password manager
2021-09-06Fix Sign In Window Flashing | Xbox App | Windows Guide



Tags:
node js tutorial
node js
nodejs
node.js
windows service
windows
windows 10 nodejs
nodejs server
node.js service workers
how to run a node js application as a windows service
how to deploy node js application on windows server
service
how do i run a node js application as a windows service
install nodejs and npm on windows 10
how do i run a node.js app as a background service
node js windows
install service
install
how to
guide
tutorial
working
node-windows