How pavloshaparenko/nodejscourse works
This repository is a set of standalone Node.js course examples, not one integrated application. Its examples demonstrate event-loop scheduling, module systems, filesystem and path APIs, events, HTTP handling, streams, and a small Express server. The HTTP server is the clearest user-to-result workflow: a client request is routed to a handler, which returns content or reads and updates comment data. The README contains no capability details, so the map reflects the directory tree and sampled source; unsampled examples are shown only where their paths and purpose are evident.
Main entry points: index.js CommonJS example · copy-files-in-folder.mjs Folder stream copy · handlers.js Request handlers · index.mjs ES module example
Components 28
Runtime scheduling
- Event-loop demo
01-event-loop-events/app.js - Fibonacci demos
02-blocking-event-loop/fibonacci-with-cache.js
Modules and events
- CommonJS example
03-commonjs-modules/index.js - CommonJS exports
03-commonjs-modules/multiple-exports.js - Single export
03-commonjs-modules/my-modules/single-export.js - Re-export example
03-commonjs-modules/export-and-import.js - ES module example
04-es6-modules/index.mjs - Default export
04-es6-modules/default-export.mjs - EventEmitter demo
06-events/index.mjs
Files and streams
- Filesystem example
05-fs/index.js - Promise filesystem
05-fs/promises-fs.js - Synchronous filesystem
05-fs/sync-fs.js - Path utilities
07-path/index.js - Folder stream copy
09-streams/copy-files-in-folder.mjs - HTTP file stream
09-streams/http-stream-file.mjs - Standard I/O pipe
09-streams/stdin-pipe-stdout.mjs - Create file stream
09-streams/create-file.mjs - Sample input files
09-streams/files - Copied files
09-streams/copied-files
HTTP examples
- HTTP client
- HTTP router
08-http/index.js - Request handlers
08-http/handlers.js - Comments data
08-http/data.js - Comment form
08-http/files/comment-form.html - HTTP client
- Express example
10-npm/index.js - Express runtime
Other components
- Learner
Connections 25
- Learner → Event-loop demo: runs demo
- Learner → Fibonacci demos: runs demo
- Learner → CommonJS example: runs demo
- CommonJS example → CommonJS exports: imports
- CommonJS example → Single export: imports
- CommonJS example → Re-export example: imports
- Learner → ES module example: runs demo
- ES module example → Default export: calls
- Learner → EventEmitter demo: runs demo
- Learner → Filesystem example: runs demo
- Learner → Promise filesystem: runs demo
- Learner → Synchronous filesystem: runs demo
- Learner → Path utilities: runs demo
- Learner → Folder stream copy: runs demo
- Folder stream copy → Sample input files: reads
- Folder stream copy → Copied files: writes
- Learner → HTTP file stream: runs demo
- Learner → Standard I/O pipe: runs demo
- Learner → Create file stream: runs demo
- HTTP client → HTTP router: sends request
- HTTP router → Request handlers: dispatches
- Request handlers → Comments data: reads and updates
- Request handlers → Comment form: reads
- HTTP client → Express example: sends request
- Express example → Express runtime: uses