Skip to content

Commit 252dad8

Browse files
committed
Created main index file
1 parent b139b45 commit 252dad8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

index.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Import express
2+
const express = require('express');
3+
4+
// Create Express app
5+
const app = express();
6+
7+
// Set Public directory
8+
app.use(express.static(__dirname + '/public'))
9+
10+
// Define Port
11+
const port = 3000
12+
13+
// Listen on defined port
14+
app.listen(port, () => {
15+
console.log(`Web server started`)
16+
})

0 commit comments

Comments
 (0)