Skip to content

Commit 279b706

Browse files
committed
Setup CRUD Board Project
1 parent eed6bc8 commit 279b706

File tree

5 files changed

+2670
-0
lines changed

5 files changed

+2670
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const express = require("express");
2+
const handlebars = require("express-handlebars");
3+
const app = express();
4+
5+
app.engine("handlebars", handlebars.engine());
6+
app.set("view engine", "handlebars");
7+
app.set("views", __dirname + "/views");
8+
9+
app.get("/", (req, res) => {
10+
res.render("home", { title: "안녕하세요", message: "만나서 반갑습니다!" });
11+
});
12+
13+
app.listen(3000, () => {
14+
console.log("SERVER START");
15+
});

0 commit comments

Comments
 (0)