Terminal project · 7 units · Free
Build a recoverable single-writer store
Build a local key/value store that can reopen its log and recover from interrupted writes.
Get the course on GitHub- What you’ll learn
- Record encoding, append logs, indexing, atomic batches and compaction.
- Your project
- Your own single-writer store, a small client and a recovery investigation.
- How you’ll work
- Clone the reader and Node.js starter from GitHub. A disk adapter is supplied; you implement the store.
What you’ll build
- Encode framed records and build an append log with an index.
- Add atomic batches, truncated-write recovery and compaction.
- Use your store through its CLI, then build a small client and a recovery report.
Before you start
JavaScript ES modules, objects, arrays and Map; basic Node Buffer use, UTF-8 byte lengths and filesystem calls. The disk adapter is supplied.
Tested with Node.js 26.5.1 on macOS. Other runtime versions and operating systems remain unqualified. No package installation, database account or paid service.
The supplied fault model covers process interruption, not physical power loss. Keep experimental data separate from files you depend on.
Clone and start the terminal project
Use the already-installed tools listed above. Clone the learner source, enter this course directory and run its first check:
git clone https://github.com/itsHabib/free-to-learn.git
cd free-to-learn
git checkout fbaa574779092598628054780587838f3d6b3762
cd courses/recoverable-storage
node lab.mjs start project
node lab.mjs check project 01 --help-used noneImplement project/solution.mjs through seven units. Build your own client, transaction rule and recovery investigation. Export to a new directory; the exported project is nested at NEW_DIRECTORY/project.
The unfinished starter should fail with a named diagnostic. Implement your own code; supplied worked/prerequisite layers are labelled assistance. Preserve first attempts and declare actual help.
Single-writer teaching store with a declared process-interruption model. The terminal client/fault and folder-recovery routes are qualified; no physical power-loss or new browser guarantee is made.
Browse the pinned learner source · Reuse terms and attribution
Browser-only material in the course keeps its own stated limitations.
A later course, Advanced Storage: concurrent snapshots, starts from a supplied store with this course’s log, recovery and compaction, and adds snapshots, conflict checks and version retention.