Calc Angular is an Angular calculator built as a clean-architecture port of the React version in calc-react. It keeps the same feature set while organizing the code around domain logic, application state, and presentation components.
- Basic arithmetic with chained operations and repeated equals behavior
- Scientific helpers for square, cube, square root, cube root, factorial, reciprocal, percentage, and constants
- Memory controls for store, recall, and clear
- Language switching for English, Spanish, and Portuguese
- Accessible result output with responsive layout and visual regression coverage
src/app/core/domain/contains pure calculator logic, formatting helpers, and shared typessrc/app/core/i18n/contains localized messages and translation helperssrc/app/features/calculator/contains the calculator facade and feature shellsrc/app/shared/components/contains reusable presentation componentstests/visual/contains Playwright visual regression tests
Install dependencies:
yarn installRun the development server:
yarn startBuild the app:
yarn buildRun unit tests:
yarn testRun visual tests:
yarn test:visualRefresh visual snapshots:
yarn test:visual:updateLint the workspace:
yarn lintFormat files:
yarn format