Skip to content

Commit 725d6da

Browse files
committed
initial commit
1 parent 5a5b5b2 commit 725d6da

File tree

7 files changed

+690
-0
lines changed

7 files changed

+690
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

app.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const express = require('express');
2+
const bodyParser = require("body-parser");
3+
4+
const app = express();
5+
app.use(bodyParser.urlencoded({extended: true}));
6+
7+
const homeRouter = require("./routes/HomeRoute");
8+
9+
app.use("/", homeRouter);
10+
11+
app.listen(3000, () => {
12+
console.log("app is running on port 3000")
13+
});

controllers/homeController.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports.homePage = (req, res) => {
2+
res.send("hello world");
3+
}

0 commit comments

Comments
 (0)