-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (25 loc) · 728 Bytes
/
index.js
File metadata and controls
28 lines (25 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.set('Content-Type', 'text/html')
res.send(`
<html>
<head></head>
<body>
<h1>Super Awesome Karaoke Playlist</h1>
<div>
<ul>
<li>Journey - Don't Stop Believin</li>
<li>Aerosmith - I Don't Wanna Miss A Thing</li>
<li>Leonard Cohen - Hallelujah</li>
<li>Tears for Fears - Everybody wants to rule the world</li>
</ul>
</div>
</body>
</html>
`)
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})