Duration: 80 minutes
Learning Objectives:
Get familiar with core Node.js libraries for file handling, HTTP, and streams.
Outline:
Overview of Node.js core libraries.
Working with the fs module for file operations.
fs
Introduction to the http module for creating servers.
http
Using streams for efficient data handling.
Student Activity:
Write a program to read, write, and append data to a file using the fs module.
Create a simple HTTP server using the http module.
Homework Assignment:
Expand your HTTP server to serve different static files based on the URL.
Research and write a short note on how streams improve performance in Node.js.
Last updated 1 year ago