Getting started with Node.js

Run JavaScript outside the browser, and set up a project.

Node.js runs JavaScript on a server or your own computer. It handles many connections at once by not waiting around for slow work, which makes it a good fit for APIs.

Node.js
// hello.js: run with  node hello.js
console.log("Vanakkam from Node", process.version);
HTML
npm init -y
npm install express
node server.js

package.json lists your project and its dependencies. Do not commit node_modules: anyone can recreate it with npm install.

Modules and files โ†’