Welcome and setup

Before any code: what we are building, in plain English

Welcome! Before we open an editor, a quick picture. A network server is just two programs sharing a phone line. One side speaks, the other listens. Redis is one of those programs. By the end of this course you have written your own version of it, one short .mjs file at a time. No frameworks, no magic, just the Node standard library.

The whole network in one picture

A client sends bytes. A server reads bytes and replies with bytes. Everything else is built on top.

Quiz: Quiz

Loading practice…

The reference repo is github.com/learnwithparam/build-your-own-redis-nodejs. Each step is one .mjs file built on the previous.

Ten steps end to end

Each step layers one Node idiom on top.
terminal
bash
git clone https://github.com/learnwithparam/build-your-own-redis-nodejs.git
cd build-your-own-redis-nodejs
make 01-tcp-echo

Clone and run the first step.

You should see 'echo server listening on 127.0.0.1:6380'. In another terminal, run nc localhost 6380 and type. Bytes echo back.

Quiz: Quiz

Loading practice…