Ieu mangrupikeun server wéb saderhana tina sumber Node.js aslina: # Jieun file anu namina app.js const http = require('http'); const hostname = '127.0.0.1'; const port = 3000; const server = http.createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); res.end('Hello World'); }); server.listenport, hostname, () => {console.log.`Server running at http://${hostname}:${port}/`); }); Teras, jalankeunana nganggo paréntah ieu: `node app.js.
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence