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:
- Chapter 01 -- Building Express Abstractions
- Chapter 02 -- Handling routes out of the box
- Chapter 03 -- Implement
next
function - Chapter 04 -- Extending Response Object
- Chapter 05 -- Implementing
send
/json
onresponse
- Chapter 06 -- Error Handling (WIP)
- 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.