As a copywriter, the edits I make to a site are stored somehwere, so then I can preview the changes made to the document.
As an engineer, every save a copywriter performs, causes a HTTP POST request to store the entire DOM of the page they have edited, with a timestamp, so that the edits may be stored, and viewed in the future.
Future: Use mutationobserver to record an playback changes.
Ref https://github.com/KarmaComputing/copyeditor
cargo install cargo-watch
cargo watch -x run
Build
docker build --tag copywriter .
Run
docker run -p 8080:8080 -v $PWD/output:/app/output copywriter
Smoketest
curl -X POST -v http://127.0.0.1:8089/echo -d "hello"