Skip to content

Commit c86a9b8

Browse files
committed
add node logo and express static
1 parent 10f66c5 commit c86a9b8

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

index.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
var express = require('express');
1+
var express = require('express')
22
var app = express();
33

44
app.set('port', (process.env.PORT || 5000))
5+
app.use(express.static(__dirname + '/public'))
6+
57
app.get('/', function(request, response) {
6-
response.send('Hello World!');
7-
});
8+
response.send('Hello World!')
9+
})
810

911
app.listen(app.get('port'), function() {
10-
console.log("Node app is running at localhost:" + app.get('port'));
11-
});
12+
console.log("Node app is running at localhost:" + app.get('port'))
13+
})

public/node.svg

+17
Loading

0 commit comments

Comments
 (0)