/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Remember to do a basic "npm install connect" before executing var connect = require('connect'); var port = 3000; connect.createServer( connect.static(__dirname) ).listen(port); console.info("Listening port " + port.toString() + " from: " + __dirname);