9028013be41ff92ad3f783a1ad4d944cc96d62c4
[nit.git] / examples / calculator / README.md
1 Portable calculator built using _app.nit_
2
3 # Project structure
4
5 * `calculator_logic` defines `CalculatorContext` with all the business logic of a calculator.
6   It takes as input operations and numbers, and outputs the text to display.
7 * `calculator` implements the portable graphical interface using the _app.nit_ framework
8 * `calculator_test` test `CalculatorContext` as a black box.
9
10 # Usage
11
12 1. Compile with a call to `make`.
13 2. Run with either:
14         1. The desktop version, `bin/calculator`.
15         2. The Android version by install the APK at `bin/calculator.apk`.