https://github.com/r-dziewaltowski/classiccalculatorblazorapp
A simple calculator web application giving a feel of using an old school physical calculator device.
https://github.com/r-dziewaltowski/classiccalculatorblazorapp
arithmetic blazor calculator calculator-app calculator-application csharp dotnet math webapp
Last synced: 3 months ago
JSON representation
A simple calculator web application giving a feel of using an old school physical calculator device.
- Host: GitHub
- URL: https://github.com/r-dziewaltowski/classiccalculatorblazorapp
- Owner: r-dziewaltowski
- License: mit
- Created: 2025-03-19T17:11:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-28T13:51:18.000Z (about 1 year ago)
- Last Synced: 2025-03-28T14:37:16.483Z (about 1 year ago)
- Topics: arithmetic, blazor, calculator, calculator-app, calculator-application, csharp, dotnet, math, webapp
- Language: CSS
- Homepage:
- Size: 7.16 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Classic Calculator Blazor application
A simple calculator web application giving a feel of using an old school physical calculator device.
## Table of Contents
- [Description](#description)
- [Features](#features)
- [Usage](#usage)
- [License](#license)
## Description
It's a Blazor Single Page Application (SPA) which is also a Progressive Web Application (PWA) which means that it can be installed on any device (e.g. Windows desktop, Android mobile) like a native app.
This project is just a frontend and for internal calculator logic it uses my ClassicCalculator Nuget package that can be found here: https://www.nuget.org/packages/ClassicCalculator. Thanks to that it is focused solely on the presentation layer, not on the business logic.
## Features
The application provides the functionality of a simple calculator with a display showing just one number and the following buttons:
- Digits (0-9)
- Decimal point (.)
- Toggle sign (+/-)
- Add (+)
- Subtract (-)
- Multiply (*)
- Divide (/)
- Calculate/Equals (=)
- Percent (%)
- Sqaure root (√)
- Clear (C)
The behaviour follows quite closely my own physical calculator device.
## Usage
```bash
git clone https://github.com/r-dziewaltowski/ClassicCalculatorBlazorApp.git
cd .\ClassicCalculatorBlazorApp\
```
The application is deployed and avaialble at the following address: https://classiccalculator.onrender.com/. Plase note that when you try to access it it may be asleep and needs around a minute to wake up. It's a Progressive Web Application (PWA) which means that it can be installed on any device (e.g. Windows desktop, Android mobile) like a native app.
If you prefer to run it locally there's two options:
- Run in Docker container:
First you have to start docker (e.g. Docker Desktop). Then run the following command:
```bash
docker-compose up --build
```
Access via http://localhost/ in your browser
- Run directly:
```bash
dotnet run --project .\src\ClassicCalculatorBlazorApp\
```
Access via http://localhost:5116/ or https://localhost:7201 in your browser
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.