2024-07-28 09:26:14 -04:00
|
|
|
var express = require("express");
|
|
|
|
var app = express();
|
|
|
|
|
|
|
|
app.set("view engine", "ejs");
|
2024-07-28 09:31:15 -04:00
|
|
|
app.use(express.static("public"))
|
2024-07-28 09:26:14 -04:00
|
|
|
|
|
|
|
app.get("/", function(req, res) {
|
2024-07-28 09:29:05 -04:00
|
|
|
res.render("index");
|
2024-07-28 09:26:14 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
app.listen(8080);
|
|
|
|
console.log("Server is listening on port 8080");
|