Skip to content

Commit 9d7486e

Browse files
committed
Add HTTP server with Express http module
1 parent 399ccb4 commit 9d7486e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

0x05-Node_JS_basic/6-http_express.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// HTTP server with Express's http module
2+
const express = require('express');
3+
4+
const app = express();
5+
const port = 1245;
6+
7+
app.get('/', (request, response) => {
8+
response.send('Hello Holberton School!');
9+
});
10+
11+
app.listen(port, () => {
12+
});
13+
14+
module.exports = app;

0 commit comments

Comments
 (0)