dronedemo/http.js

8 lines
184 B
JavaScript

var http = require('http').createServer(require('./app.js'));
const PORT = 3000;
http.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});
module.exports = http;