How to Build a Web Server with Node JS - Node.js Tutorials for Beginners

How to Build a Web Server with Node JS - Node.js Tutorials for Beginners

Dave Gray via YouTube Direct link

Make the html extension optional

10 of 19

10 of 19

Make the html extension optional

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

How to Build a Web Server with Node JS - Node.js Tutorials for Beginners

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Welcome
  3. 3 Overview
  4. 4 Project Setup
  5. 5 Import modules / dependencies
  6. 6 A minimal server
  7. 7 Two inefficient approaches
  8. 8 Setting the Content-Type
  9. 9 Setting the file path
  10. 10 Make the html extension optional
  11. 11 Does the requested file exist?
  12. 12 Routing redirects
  13. 13 Basic serveFile function
  14. 14 Calling the serveFile function
  15. 15 Serving JSON with the serveFile function
  16. 16 Serving images with the serveFile function
  17. 17 Sending a 404 status code
  18. 18 Logging requests and errors
  19. 19 Up and running with the web server

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.