Is it possible to serve angular.js by using only http module from node, without any other frameworks? Will I have all the functionality that is needed for a simple web app?
This is what I've tried:
http.createServer(function(req, res){
fs.readFile('./src/index.html', function(err, f1){
res.writeHead(200, {'Content-Type': 'text/html'})
res.write(f1)
fs.readFile('./src/angular.min.js', function(err, f2){
res.writeHead(200, {'Content-Type': 'application/javascript'})
res.write(f2)
res.end()
})
})
}).listen(6666)
Is there some step that I have missed, or something I need to read about to understand how files are linked up?