Skip to Content
Advanced Node.js Development
book

Advanced Node.js Development

by Andrew Mead
March 2018
Intermediate to advanced
592 pages
13h 44m
English
Packt Publishing
Content preview from Advanced Node.js Development

Updating the HTML file

Now in order to get that done, the first thing we're going to do is tweak the current HTML file. Right now, index.html is going to load first. We actually don't want that to be the case, when we go to localhost:3000 we want to show our new join page. So what I'm going to do instead is move this page by renaming it. We're going to rename index.html to chat.html. I'm going to do the exact same thing with index.js, renaming it to chat.js.

Last but not least, I'm going to update the reference in the script where we load in index.js; instead, we'll load in chat.js. Now that we have this in place; we no longer have an HTML page that's going to load when you visit the site. If I try to go to localhost:3000, we're going to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Node.js Development

Learning Node.js Development

Andrew Mead
Serverless Applications with Node.js

Serverless Applications with Node.js

Aleksandar Simovic, Slobodan Stojanovic
Node.js: Tools & Skills, 2nd Edition

Node.js: Tools & Skills, 2nd Edition

James Hibbard, Michael Wanyoike, Nilson Jacques, Jay Raj, Manjunath M
Your First Week With Node.js, 2nd Edition

Your First Week With Node.js, 2nd Edition

James Hibbard, Craig Buckler, Mark Brown, Nilson Jacques, James Kolce, Paul Orac, M. David Green, Florian Rappl

Publisher Resources

ISBN: 9781788393935Supplemental Content