Create some boilerplate code for index webpage.

This commit is contained in:
CentreMetre
2026-05-31 08:56:33 +01:00
parent b270924248
commit 2990452b3b
2 changed files with 19 additions and 7 deletions

View File

@@ -1,12 +1,10 @@
import express from 'express';
import path from 'path';
const app = express();
const port = 3000;
app.get('/', (req, res) => {
res.send('Server is running');
});
app.use(express.static('public'));
app.listen(port, () => {
console.log(`Server running on http://localhost:${port}`);
});
app.listen(3000);
console.log("Codelist app running on port 3000")