About Node.js
Node.js is an MIT-licensed JavaScript runtime built on the V8 engine. Its event loop serves many concurrent connections without threads, which suits APIs, WebSocket services and server-rendered frameworks such as Next.js or Nuxt.
A CloudSat VPS gives your app a root shell, a fixed IP and NVMe storage for node_modules. High Frequency plans help, since one Node process runs your JavaScript on a single core.
Node.js and npm come ready: run your app on any port and put NGINX or Caddy in front for HTTPS.
What you get with Node.js
- V8 engine with modern JavaScript and ES modules
- Built-in test runner, watch mode and
--env-fileloading - Type stripping for TypeScript files in current releases
- npm with the whole public registry
- Worker threads and cluster for multi-core use
Node.js use cases
- Host a REST or GraphQL API
- Run a Next.js or Nuxt site with server rendering
- Serve WebSocket backends for chat or live dashboards
After you deploy Node.js
- Log in as root over SSH when the server turns Running (key or Access tab password) and confirm
node -v. - Create a non-root user for the app, clone your code and run
npm ci. - Keep the process alive with a systemd unit, or with
npm install -g pm2andpm2 start app.js. - Proxy the app's port through NGINX or Caddy with HTTPS on your domain, and close that port to the public.
Node.js ports
Open these in your firewall if you use one: 22/tcp SSH, Your app's port (3000 is a common default).
Node.js FAQ
Which Node.js version should I run?
An LTS release, since LTS lines get about 30 months of fixes. To run several versions side by side, use a version manager such as nvm.
How do I use more than one CPU core?
Run several processes behind one port with the cluster module or PM2's cluster mode, or scale out to more servers behind a load balancer.
Disclaimer. The Node.js project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.