N-blog
《一起学 Node.js》
A step-by-step Chinese tutorial that teaches Node.js by building a real multi-user blog with Express and MongoDB from scratch, covering routing, sessions, file uploads, and permission control chapter by chapter.
N-blog is a Chinese-language tutorial that walks you through building a multi-user blog with Node.js and shows you the broader Node.js ecosystem along the way. The repository name and description (一起学 Node.js, "learning Node.js together") make clear that it is a course, not a finished product you would deploy. It is hosted as a series of markdown chapters under a book folder, organised as a table of contents.
The README lists the development environment the tutorial targets: Node.js 8.9.1, MongoDB 3.4.10, and Express 4.16.2. Express is a popular minimalist web framework for Node.js, MongoDB is a document database, and the README also references Mongolass, a library for working with MongoDB. The chapter outline takes you from setting up Node.js (including version managers like n and nvm, and the npm registry switcher nrm) through core Node concepts (require, exports versus module.exports, Promises, environment variables, package.json, semver, npm scripts), then into Express itself (initialising a project, routing with express.Router, template engines including ejs, middleware and the next function, error handling). The bulk of the book is a step-by-step build of a simple blog, covering project structure, dependency installation, ESLint and EditorConfig, configuration files, user and article and comment models, registration with file upload, login and logout sessions, page flash notifications, and permission control.
You would read N-blog if you are new to back-end JavaScript and want a guided project — typing along chapter by chapter — rather than a reference manual. The full README is longer than what was provided.
Where it fits
- Learn Node.js fundamentals by following a guided project that builds a working multi-user blog from the ground up.
- Understand Express routing, middleware, template engines, and session handling by typing along with the tutorial chapters.
- Set up user authentication with registration, login, logout, and permission control in a Node.js/Express application.