- This system is designed to be readable and hackable.
- Framworks import so many tools and technologies that they form islands of code. Hiding the underlying simplicity.
- To have a small piece of code to learn about networking and the http (protocol)
A small set of tools to get started with a nodejs http server. More like a template.
- server uses
node:http
- great for learning about testing and http servers at a lower level
- easy to inspect and modify the raw streams
- testing uses the built in
node:test
andundici
for requests for compatibility with other runtimes - examples of async and stream styles in a running server (node.js superpower)
install npm if needed
npm install
run the test suite in watch mode
npm test
- ✅ HTTP Only Cookie example
- Improve clarity of docs.
- Start a
mods
folder that can addwebsockets
andsse
. - Add html page examples for
forms
anduploads
. - Add autoreload when a page changes
Including a few external testing tools to help learn about the larger web ecosystem and popular testing strategies.
- playwright https://github.com/microsoft/playwright
- nodemon https://github.com/remy/nodemon
- undici https://github.com/nodejs/undici