Skip to content

Commit 5b702b2

Browse files
committed
inital commit
0 parents  commit 5b702b2

File tree

7 files changed

+1070
-0
lines changed

7 files changed

+1070
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:19.0.1
2+
3+
WORKDIR /app
4+
5+
ADD package*.json ./
6+
7+
RUN npm install
8+
9+
ADD index.js ./
10+
11+
CMD ["node","index.js"]
12+
# CMD ["npm","start"]
13+

index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const express = require("express");
2+
const app = express();
3+
4+
app.get("/", (req, res) => {
5+
res.send("<h1>Hello from the home us page</h1>");
6+
});
7+
app.get("/about", (req, res) => {
8+
res.send("<h1>Hello from the about us page</h1>");
9+
});
10+
app.get("/contact", (req, res) => {
11+
res.send("<h1>Hello from the contact us page</h1>");
12+
});
13+
app.get("/feedback", (req, res) => {
14+
res.send("<h1>Hello from the feedback us page</h1>");
15+
});
16+
17+
app.listen(5000, () => {
18+
console.log(`server running on the localhost 5000`);
19+
});

0 commit comments

Comments
 (0)