Why Node.js?

Node.js lets you run JavaScript on the server. It’s fast, lightweight, and has a massive ecosystem of packages via npm.

Your First Server

const http = require("http");

http.createServer((req, res) => {
  res.end("Hello World!");
}).listen(3000);

That’s it — a working web server in just a few lines of code.

Next Steps

  • Learn about Express for routing
  • Explore Prisma for database access
  • Try building a REST API