path and port messages

This commit is contained in:
Baipyrus 2023-01-16 14:40:33 +01:00
parent 5ada6995dd
commit 2245199434

View File

@ -4,6 +4,7 @@ const express = require('express');
const app = express();
const clientPath = __dirname+'/../html';
console.log('Serving static from ' + clientPath);
app.use(express.static(clientPath));
const server = http.createServer(app);
@ -20,5 +21,5 @@ server.on('close', () => {
});
server.listen(3000, () => {
console.log("Server running ...")
console.log('Server running on port 3000');
});