added more structure to project

This commit is contained in:
2025-07-21 14:51:10 +02:00
parent 22b358f543
commit c4c8db94a6
6 changed files with 239 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
//statics
import express from "express";
const app = express();
const port = 4000;
//view engine ejs
app.set("view engine", "ejs");
app.get("/", (req, res) => {
res.render("index.ejs");
});
app.listen(port, () => {
console.log(`Server is running at http://localhost:${port}`);
});