Overview
Learn how to build a web server with Node JS without using any framework. This course aims to provide foundational knowledge of Node.js, essential for understanding Express JS. The syllabus covers setting up a project, importing modules, creating a server, handling file paths, routing, serving different file types, error handling, and logging. The teaching method involves practical demonstrations and code walkthroughs. This course is intended for beginners interested in Node.js and web development.
Syllabus
Intro
Welcome
Overview
Project Setup
Import modules / dependencies
A minimal server
Two inefficient approaches
Setting the Content-Type
Setting the file path
Make the html extension optional
Does the requested file exist?
Routing redirects
Basic serveFile function
Calling the serveFile function
Serving JSON with the serveFile function
Serving images with the serveFile function
Sending a 404 status code
Logging requests and errors
Up and running with the web server
Taught by
Dave Gray