added more structure to project
This commit is contained in:
@@ -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}`);
|
||||
});
|
||||
|
Reference in New Issue
Block a user