var express = require("express")
, app = express()
, http = require("http").createServer(app)
I constantly see how they get addicted. In my opinion, http hosts front-end html? and the expression contains the server-sided nodejs logic? and the connection was an express base layer, so is it also a server module?
If it’s not, why people just don’t
express().listen(8080)
instead
require("http").createServer(express()).listen(8080)
source
share