Topics Covered

  • Duration: 80 minutes

  • Learning Objectives:

    • Get familiar with core Node.js libraries for file handling, HTTP, and streams.

  • Outline:

    1. Overview of Node.js core libraries.

    2. Working with the fs module for file operations.

    3. Introduction to the http module for creating servers.

    4. 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