mirror repo of https://github.com/littlequartz/clink. a socket programming assignment for Sistem Terdistribusi
Client: - Add menuItem.Price; show prices in menu and compute totals from server ack - Track and render recent “[order] …” broadcasts in right column - Responsive layout with header/body/footer and window size handling - Listen for server broadcasts after connect; keep last 10 orders - Parse ORDER ack as “OK|<total>”; display “Total: $<amount>” - Split view rendering into header/left/right/footer helpers - Enhance form options to include “Name - $Price” - Add width/height state; remove fixed 80-col assumption Server: - Extend defaultMenu with prices - Compute total = qty × price; broadcast “[order] … ($xx.xx)” - Acknowledge ORDER with “OK|<total>” instead of plain “OK” Proto/UX: - MENU returns items with price - ORDER response now includes total for client display |
||
|---|---|---|
| .github/workflows | ||
| .gitignore | ||
| AGENTS.md | ||
| build.sh | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| server.go | ||