harbor run -t openthoughts/tasktrove-exp-rpt-stack-dockerfile-v2-stack-dockerfile-0440harbor download openthoughts/tasktrove-exp-rpt-stack-dockerfile-v2-stack-dockerfile-0440Task: Build a small, self-contained HTTP JSON notes API in Elixir (no external dependencies)
Context
Goal Create a single-file Elixir application (placed in /app, e.g., server.exs) that starts a minimal HTTP server using only the standard Elixir/Erlang libraries and provides a persistent, in-memory-backed notes API stored on disk at /app/notes.json. The server should handle a small set of HTTP routes and JSON input/output without relying on external web frameworks.
What you must implement
A self-contained Elixir script (server.exs) that you can run with: elixir /app/server.exs The script should start a TCP server listening on port 4000 and handle HTTP requests sequentially.
Data model and persistence
HTTP API (no external dependencies) Implement a minimal HTTP server using :gen_tcp that supports these endpoints:
Input/output formats
Concurrency and robustness
Deliverables
How to run and test
Evaluation criteria
Notes