How to Set Up a Static Site with Hexo
Hexo is a popular Node-based static blog generator. On a VPS you build public/ and serve it without Node in production.
Steps
Install Node.js LTS and the Hexo CLI:
Hexo is a popular Node-based static blog generator. On a VPS you build public/ and serve it without Node in production.
Install Node.js LTS and the Hexo CLI:
Gatsby builds React static sites. On a VPS you compile once and serve HTML/JS/CSS with Nginx.
Ensure Node.js LTS and the Gatsby CLI:
node -v || (curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt install -y nodejs)sudo npm install -g gatsby-cligatsby --versionWebSockets keep a bidirectional connection (chats, dashboards, games). Here: a minimal Node server plus Nginx in front.
Install Node.js LTS if needed and create a project:
mkdir -p ~/ws-demo && cd ~/ws-demonpm init -y && npm install wsA Discord bot on a VPS stays online 24/7. Minimum: Node.js (or Python), the token outside code, and a process that survives SSH.
Install Node.js LTS and create the project:
ode.js runs JavaScript on the server (APIs, bots, front builds). On a VPS pick a stable LTS release.
Add the NodeSource LTS repo (22.x example) and install:
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -sudo apt install -y nodejsCheck versions:
ode.js is a popular JavaScript runtime for building scalable server-side applications. This guide shows you how to install Node.js on your Ubuntu VPS.