From 9c2d1eb1d423625672cb469af6bf708a48d3cb71 Mon Sep 17 00:00:00 2001 From: eunhhu Date: Sat, 26 Sep 2026 18:04:31 +0100 Subject: Add a board used by people and programs alike examples/board.aup is a kanban board: people add and move cards on Vega's surfaces, programs post JSON to the same module served by pure-serve, with no routes written. The checks write cards with the CLI into a store, serve that store over HTTP where a program moves one and adds another, and read it again with the CLI, the focus still on the card it was on. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 6c89767..0ab0430 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,20 @@ build/vega web todo.pmod --watch # 브라우저(GUI). --watch: 모 make check # 참조 모델 대조, 프레임 검사, 대화형 pty 검사, 견고성 ``` +사람과 프로그램이 같은 앱을 쓴다. `examples/board.aup`는 칸반 보드다. 사람은 Vega 표면으로, 프로그램은 같은 모듈과 +저장소를 서빙하는 Pure의 `pure-serve`로 쓴다(라우트 코드가 없다. 보기가 GET, 입력이 POST다). + +```sh +AUP_PATH=lib ../aup/build/aup build examples/board.aup -o board.pmod +build/vega tui board.pmod --store ~/.board # 사람: 제목을 쓰고 Enter, Tab 뒤 ←→로 칸을 옮긴다 +../pure/prototypes/connections/build/pure-serve --module board.pmod --store ~/.board --threads 2 & +curl -s localhost:8767/views/counts # 1 to do, 1 doing, 0 done +curl -s -X POST -H 'Content-Type: application/json' -d '{"title": "ship it", "lane": 2}' localhost:8767/inputs/post +curl -s 'localhost:8767/views/cards_list?from=0&count=20' +``` + +한 저장소는 한 번에 한 호스트가 연다(상태의 소유자는 하나다). + ## 위치 | 층 | 역할 | 비유 | -- cgit v1.2.3