Skip to content

Commit f0b7c23

Browse files
authored
feat: added james_capparell folder with mock Code Differently main and contact page for lesson_24 (#588)
1 parent 1dfc952 commit f0b7c23

File tree

9 files changed

+2003
-0
lines changed

9 files changed

+2003
-0
lines changed

lesson_24/james_capparell/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const morgan = require('morgan');
2+
const express = require('express');
3+
const path = require('path');
4+
5+
const app = express();
6+
7+
app.use(morgan('dev'));
8+
9+
app.use(express.static(path.join(__dirname, 'public')));
10+
11+
const PORT = process.env.PORT || 2400;
12+
13+
14+
15+
16+
app.listen(PORT, () => {
17+
console.log(`Listen at http://localhost:${PORT}`)
18+
})

0 commit comments

Comments
 (0)