This API is a thin HTTP wrapper around the existing MATLAB worker
OceanBatteryWithMatlab/functions/worker_kvalues_watch_jsonlines.m.
It writes parameter files into a watched input directory and returns the
computed K-values when the MATLAB worker writes the output JSONL.
- API writes
<uuid>.jsonintoIN_DIR. - MATLAB worker watches
IN_DIRfor*.jsonand writes<uuid>.jsonlintoOUT_DIR. - API reads the JSONL, extracts the
k_values, and returns them.
Build the container and website:
docker compose build
Run (mount the same directories used by the MATLAB worker):
docker compose up -d