Node.js Server

A basic Node.js server implementation.

Learn More

What is Node.js?

Node.js is an open-source, cross-platform JavaScript runtime environment that allows developers to run JavaScript on the server-side.

Resources

Example Node.js Server

const http = require('http');

http.createServer((req, res) => {
 res.writeHead(200, {'Content-Type': 'text/plain'});
 res.end('Hello World\n');
}).listen(3000, () => {
 console.log('Server running on port 3000');
});