Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

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

Dave Gray via YouTube

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

Reviews

Start your review of How to Build a Web Server with Node JS - Node.js Tutorials for Beginners

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.