Node JS Basit Sunucu Kurulumu
Node js de nasıl sunucu nasıl kurulur?

const http = require('http');
const server = http.createServer((req,res)=>{
console.log(req);
});
server.listen(3000,'localhost', ()=>{
console.log('3000 portu dinleniyor');
});
Yukarıdaki kodu yazdıktan sonra terminalinize : node server.js (kendi dosyanızın adı) yazarak sunucusunuzu başlatabilirsiniz.
Sunucuyu başlattıktan sonra tarayıcınızda localhost:3000 adresine giderek terminalinize gelen cevapları kontrol edebilirsiniz.
Tepkiniz Nedir?






