Skip to content
项目

关于

本仓库包含多个章节,讲解如何构建一个精简的 Express 库。

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-2
1个月
-1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

lets-build-express

This series of chapters will teach you how to create the express library from scratch. This will help us understand how express actually works, behind the scenes. I will use the same code, variable names, and so forth from express itself, so that people can read this tutorial and feel free to contribute to express directly.

Why?

I find people do often get confused with how next works, or how route order works in express. By building the express library, we can gain a more solid understanding. Also, it's fun!

Each chapter will build express step by step with running examples.

Here is the TOC:

  1. Chapter 01 -- Building Express Abstractions
  2. Chapter 02 -- Handling routes out of the box
  3. Chapter 03 -- Implement next function
  4. Chapter 04 -- Extending Response Object
  5. Chapter 05 -- Implementing send/json on response
  6. Chapter 06 -- Error Handling (WIP)
  7. More to come.

Note

Its work in progress, but minimal working library and the corresponding tutorial is done.

Contributions Welcome

Feel free to improve this repo: grammar mistakes, technical glitches, maybe translations? Happy to accept PRs.

License

MIT

探索相关项目

加载中…