Simple Calculator

Harry de Boer d1eec7e484 Set up Spring Boot and 'add' controller endpoint 5 سال پیش
backend d1eec7e484 Set up Spring Boot and 'add' controller endpoint 5 سال پیش
.gitignore a9e178a9ca Set up backend project and initial SimpleCalculator class 5 سال پیش
README.md d1eec7e484 Set up Spring Boot and 'add' controller endpoint 5 سال پیش

README.md

Simple calculator

This calculator project contains a simple Angular based frontend a Spring based backend.

Environment

To compile and run this project the following software needs to be installed and available on the path. Versions used for development are listed.

  • Maven (3.6.3)
  • Java JDK (OpenJDK 11.0.9.1)

Backend

To (somewhat) stay in line with RESTful principles, the backend api models a number as a resource on which calculations can be applied. This makes it possible to avoid hardcoding arithmetic operations in the frontend and use HATEOAS links instead. The latter is not implemented.

Compiling and running

Navigate into the backend directory and run mvn spring-boot:run

Example api call

Navigate to http://localhost:8080/numbers/5/add/15 in a browser and observe the response.

Frontend

TODO