This is the companion repository for the blog post: Web dev backend live compile.
It demonstrates a tight development loop for backend web servers. Instead of getting a blank page or "Connection Refused" error while your server recompiles, this setup uses systemfd and socat to stream the compilation logs directly to your browser using xterm.js.
You will need the following tools installed:
- Rust & Cargo
- socat (e.g.,
apt install socatorbrew install socat) - systemfd (
cargo install systemfd) - watchexec (
cargo install watchexec-cli)
- Clone this repository.
- Run the watcher script
./dev.sh
