Skip to content

izissise/webdevlive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Dev Live Compile Example

demo

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.

Prerequisites

You will need the following tools installed:

  • Rust & Cargo
  • socat (e.g., apt install socat or brew install socat)
  • systemfd (cargo install systemfd)
  • watchexec (cargo install watchexec-cli)

Usage

  1. Clone this repository.
  2. Run the watcher script ./dev.sh

About

Example of using systemfd to stream live compile to browsers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors