SHARE

Yo gang, in this Node JS tutorial I’ll show you how we can send (or serve) a html page to the end user / client using a stream.

—– COURSE LINKS:
+ Repo – https://github.com/iamshaunjp/node-js-playlist
+ Atom editor – https://atom.io/

———————————————————————————————
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage…

SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

========== JavaScript for Beginners Playlist ==========

https://www.youtube.com/playlist?list=PL4cUxeGkcC9i9Ae2D9Ee1RvylH38dKuET

============ CSS for Beginners Playlist =============

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gQeDH6xYhmO-db2mhoTSrT

============== The Net Ninja =====================

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

================== Social Links ==================

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

23 COMMENTS

  1. Hi there, your tutorial is very helpful. Thumb up for that!
    I just want to ask how can I load external css and image folder to the index.html and display those files on localhost? I tried to do that but localhost does not display images and external css files

  2. There are many great tutorials online, but these are the best of them all!

    Truly, others have helped me develop some familiarity and ability,
    but Net Ninja tutorials are the best where it really counts: developing a
    well-rounded, comprehensive, and highly useful understanding of the topic.

    Can't thank you enough NN!

  3. For folks running the same tutorial with Firfox as their browser, use "font-family: sans-serif;" instead of "font-family: Verdana;" as for some unknown reason Firefox doesn't support Verdana and your font will show with serifs, unlike the font in the video.

  4. In the HTML file you have <!DOCTYPE html>, but you still have to specify in writeHead that Content-Type is text/html. Is this redundant; serving different purposes?

LEAVE A REPLY

Please enter your comment!
Please enter your name here