Skip to content

Commit c50fdef

Browse files
committed
Initial: Express, Homepage (v1.0)
1 parent 06606ca commit c50fdef

5 files changed

Lines changed: 900 additions & 0 deletions

File tree

index.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const kleur = require("kleur");
2+
console.log(kleur.bold(`
3+
▗▞▀▘▗▞▀▜▌▄▄▄▄ ▐▌
4+
▝▚▄▖▝▚▄▟▌█ █ ▐▌ capd.lol (c) 2026 solarcosmic
5+
█▄▄▄▀ ▗▞▀▜▌ Capd Portfolio Server
6+
█ ▝▚▄▟▌
7+
8+
`));
9+
10+
const express = require("express");
11+
const app = express();
12+
app.set("view engine", "ejs");
13+
app.use(express.static("public"));
14+
//app.get("/", express.static(path.join(__dirname, "public")));
15+
16+
app.get("/", (req, res) => {
17+
res.render("index");
18+
})
19+
20+
app.listen(3000, () => {
21+
console.log("Running on :3000");
22+
})

0 commit comments

Comments
 (0)