9 lines
243 B
JavaScript
9 lines
243 B
JavaScript
const express = require("express");
|
|
const app = express();
|
|
|
|
app.use(express.static('public'));
|
|
|
|
var server = app.listen(8081, function(){
|
|
var port = server.address().port;
|
|
console.log("Server started at http://localhost:%s", port);
|
|
}); |