NodeJS repozitar pro 4.J pro rok 2025/2026
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
374 B

const http = require("http");
const port = 3000;
const server = http.createServer((req,res) => {
res.statusCode = 200;
res.setHeader("Content-Type", "text/plain: charset-utf-8");
res.end("Ahoj z meho prvního Node.JS serveru!\n");
})
server.listen(port, "127.0.0.1", () => {
console.log(`Server beží na adrese http://localhost:${port}`) //AltGR+ý=`
})