Terminal project · 3 lessons · Free
Build a live query engine
Keep a view of open orders current while another process edits them, even when an edit lands during the first scan.
Get the course on GitHubWhat you’ll build
Take a snapshot at a known revision. Turn each committed edit into an enter, update or leave event, then catch up from a cursor and check the view against a fresh scan.
Take either course on its own. Finish this project and Build a JIT compiler to compare a fixed compilation rule with a policy fitted on your machine. In the live query course, use node lab.mjs compare --worked to see the author’s example.
Before you start
Bring a terminal, Git and Node.js 22 or newer. You’ll use JavaScript functions, arrays and objects. The course runs locally without packages or an API key.
Clone and start
Clone the repository, then create a branch from this course edition so you can commit your progress.
git clone https://github.com/itsHabib/free-to-learn.git
cd free-to-learn
git switch -c my-live-query-engine ee404e8c174d871eff4dc9f83bdc51f632fb21f2
cd courses/live-query-engine
node lab.mjs init
node lab.mjs readerAlready taking the other course? Stay on the branch with your work. Skip the clone and branch commands, enter this course’s directory from the repository root, then run the Node commands.
Open the local address printed by the reader and start with lesson 01. Edit the starter in work/. Each lesson shows its check command and how to record your prediction. See the course README for forking and continuing on another machine.