Skip to content

Commit 6ee2cfa

Browse files
committed
Rename the app server file and change port
1 parent 2dc5f90 commit 6ee2cfa

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ Experimenting with the Notifications API and the Web Push API
1212
npm start
1313
```
1414
15-
1. Browse to http://localhost:3000/`
15+
1. Browse to http://localhost:8000/
16+

server.js renamed to clientAppServer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const app = express();
44
// Serve static files from specified directory
55
app.use(express.static(__dirname));
66

7-
const server = app.listen(3000, () => {
8-
const host = server.address().address
9-
const port = server.address().port
7+
const clientAppServer = app.listen(8000, () => {
8+
const host = clientAppServer.address().address
9+
const port = clientAppServer.address().port
1010

1111
console.log(`App is running at ${host}:${port}`)
1212
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "web-push-notifications",
33
"version": "1.0.0",
44
"description": "Web Push Notifications experiments inspired by the Deep Dive into Web Push Notifications course by Harit Himanshu on Pluralsight",
5-
"main": "server.js",
5+
"main": "clientAppServer.js",
66
"scripts": {
7-
"start": "node server.js"
7+
"start": "node clientAppServer.js"
88
},
99
"dependencies": {
1010
"express": "^4.17.1",

0 commit comments

Comments
 (0)