var http = require("http");
var fs = require("fs");
var todo = http.createServer(function(req, res) {
fs.readFile("./todo.html", function(err, data) {
if (err) {
console.log("no");
} else {
res.writeHead(200, { "Content-Type": "text/html" });
res.end(data);
}
});
});
todo.listen(3000);
here is my nodejs code i dont know how to include css js file . i cant include only html file. i want include css js file beacause i want built web app by nodejs