liveBook · Manning

Http-server module

http-server is a Node.js package and command-line tool that serves static files from a local directory over HTTP.

How 2 Manning books explain it

Web Components in Action

A command-line Node.js package that serves files over HTTP from a local directory.

How it is used
Supports local browser development and testing by serving HTML, components, and assets over HTTP.
How deep it goes
Explains installation, directory setup, server execution, and browser access, but does not examine HTTP-server internals.
Examples
Uses a test.html page and a photo-carousel demo served from a project directory.
What you can do after
Operate/configure a local HTTP server and verify browser-loaded HTML through a localhost URL.

Read how Web Components in Action explains http-server module →

Pro Angular 16

http-server is an npm package and command-line tool that serves static files over HTTP.

How it is used
Serves production or prerendered static application files locally for browser-based testing.
How deep it goes
Demonstrates installation-free execution, directory and port configuration, browser testing, and manual shutdown.
Examples
Uses dist/example on port 5000 and dist/exampleApp/browser on port 4500 as served application directories.
What you can do after
Operate/configure it: serve generated application directories at selected local ports and inspect their browser behavior.

Read how Pro Angular 16 explains http-server module →

What to know first

Related concepts

Questions about http-server module

What is http-server module?

http-server is a Node.js package and command-line tool that serves static files from a local directory over HTTP.

Which Manning books explain http-server module?

Web Components in Action and Pro Angular 16.

What should I know before learning http-server module?

Manning books that teach http-server module usually introduce CSS, HTML and JavaScript first.

What is the difference between http-server module and Angular?

http-server is a Node.js package and command-line tool that serves static files from a local directory over HTTP. Angular is an open-source, TypeScript-based web application framework and platform for building structured, component-based client-side applications.

What is http-server module a kind of?

Http-server module is a kind of package. A software package is an organized unit of related software components, defined by a programming language or package ecosystem for grouping, naming, building, importing, or distribution.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.