test-simple-calculator/CLAUDE.md
viet-anh.n e976e0cb4b [TSC-10] Implement calculation engine with arithmetic operations
Add calculator.js with a pure calculate(a, b, operation) engine returning
{result} or {error}, wired to the existing HTML UI via an IIFE. Update
index.html to load the script and CLAUDE.md to document the new module.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-08 07:56:54 +00:00

38 lines
1.4 KiB
Markdown

# Simple Calculator
Greenfield project. Implementation is driven by the Vexa AI-SDLC pipeline (Jira project TSC).
## Project Structure
```
/
├── index.html # Calculator UI (semantic HTML5)
├── styles.css # Responsive CSS layout and styling
├── calculator.js # Calculation engine + UI wiring (plain JS, no build step)
├── README.md # Project overview
└── CLAUDE.md # This file
```
## Build Commands
No build system has been configured yet. Update this section once a language/framework is chosen and dependencies are added.
## Test Commands
No test suite has been configured yet. Update this section once testing infrastructure is in place.
## Development Commands
No dev server or REPL is configured yet. Update this section once the implementation begins.
## Architecture Notes
- **Domain**: Simple Calculator — arithmetic operations (add, subtract, multiply, divide at minimum).
- **Stack**: Plain HTML/CSS/JS — no framework or build step.
- `index.html` contains the full UI structure: operand inputs, operation buttons, calculate/clear buttons, result `<output>`, and an error `<p role="alert">`.
- `calculator.js` exposes a `calculate(a, b, operation)` function returning `{ result }` or `{ error }`, and an IIFE that wires the engine to the DOM.
## Code Style
No linter or formatter has been configured yet. Update this section once tooling is set up.