Skip to content

haydar-hilmy/NodeJs-Basic-Run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NodeJs Basic Run

kali ini kita membuat web simpel pakai NodeJs

STEP by STEP

  • membuat file .js

App Screenshot

code example

var http = require('http');

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/html'});
    res.end('EveryBody Fellas!');
}).listen(8080);
  • buka cmd dan ubah file directory ke file .js mu tadi, and then write this line
node <filename>.js
  • Cek browsermu dengan link ini

Localhost

App Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published