File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff 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+
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ const app = express();
44// Serve static files from specified directory
55app . 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} ) ;
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments