explaingit

chyingp/nodejs-learning-guide

6,882RubyAudience · developerComplexity · 1/5Setup · easy

TLDR

A Chinese-language collection of Node.js learning notes with runnable code examples, covering built-in modules like file system, streams, and HTTP, plus practical Express middleware patterns.

Mindmap

mindmap
  root((repo))
    Core modules
      File system
      Streams
      HTTP networking
      Cryptography
    Networking
      TCP net module
      UDP dgram
      DNS resolution
    Express middleware
      Body parsing
      File uploads
      Session auth
      Request logging
    Advanced topics
      Clustering
      Child processes
      Asymmetric encryption
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Learn how Node.js built-in modules like file system, streams, HTTP, and cryptography work through annotated examples.

USE CASE 2

Set up session-based authentication, file uploads with multer, and request logging in an Express app.

USE CASE 3

Understand advanced Node.js topics like clustering for multi-core use, child processes, and asymmetric encryption.

Tech stack

Node.jsJavaScriptExpress

Getting it running

Difficulty · easy Time to first run · 5min

In plain English

This repository is a collection of Node.js learning notes written in Chinese. It documents how various built-in Node.js modules work, with explanations and runnable code examples. The content is organized into two levels: a basics section covering core Node.js APIs, and an advanced section drawing on practical project experience. The basics section works through many of Node.js's standard built-in modules one at a time. Topics include file system operations, data compression with zlib, DNS resolution, HTTP and HTTPS networking, TCP networking with the net module, UDP sockets with dgram, URL parsing, cryptography, binary data handling with Buffer, spawning child processes, clustering for multi-core use, the process object, the event system, streams, path handling, readline for line-by-line input reading, and utility functions. Each topic comes with notes on common API methods and common pitfalls. The advanced section covers more applied topics: handling character encoding issues on the server side, using MD5 and other cryptographic features, integrating common Express middleware like body-parser for parsing request bodies and multer for file uploads, session-based authentication, request logging with Morgan and log4js, cookie signing and parsing with cookie-parser, and asymmetric encryption. There is also material on debugging Node.js applications running on remote servers. The entire guide is written in Chinese and is associated with a Chinese technology publication on WeChat. It is aimed at Chinese-speaking developers learning Node.js who want methodical notes on how the platform's built-in modules work in practice.

Copy-paste prompts

Prompt 1
Show me how Node.js streams work with a pipe example using the fs and zlib modules from the learning guide.
Prompt 2
How do I add multer for file uploads and body-parser for form data to an Express app using these notes?
Prompt 3
Explain how Node.js clustering works for multi-core servers with a working code example.
Prompt 4
Walk me through session-based authentication in Express using cookie-parser and session middleware.
Open on GitHub → Explain another repo

← chyingp on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.