https://github.com/atriusx/rest-calculator
A REST-based math expression processor built using Spring Boot
https://github.com/atriusx/rest-calculator
Last synced: about 1 year ago
JSON representation
A REST-based math expression processor built using Spring Boot
- Host: GitHub
- URL: https://github.com/atriusx/rest-calculator
- Owner: AtriusX
- Created: 2022-01-24T03:18:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T17:23:31.000Z (over 4 years ago)
- Last Synced: 2025-02-12T17:19:58.820Z (over 1 year ago)
- Language: Kotlin
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST Calculator 🧮
This application is a 2-day project to get to learn a bit about Arrow and Spring Boot. The project is primarily a math expression processor, which uses Arrow to manage errors rather than through exceptions.
The math expression processor is accessed via a REST API built via spring boot. Clients can send requests such as `/calc/2+2` or `/calc/(4 + 10) / 5 ^ 2` and it will respond back with `4` or `0.56` respectively.
## Docker support
The application is docker-ready. If you have it installed and prefer to run your applications through it, you can simply run the `runDocker` gradle task, and it will build the application, containerize it, and then deploy it to your docker runtime.
Accessing the application can be done via `localhost:8080`.