|
|
5 år sedan | |
|---|---|---|
| backend | 5 år sedan | |
| frontend | 5 år sedan | |
| .gitignore | 5 år sedan | |
| README.md | 5 år sedan |
This calculator project contains a simple Angular based frontend, and a Spring based backend.
To compile and run this project the following software needs to be installed and available on the path. Versions used for development are listed.
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.
Navigate into the backend directory and run mvn spring-boot:run.
Integration and unittests can be run using mvn verify.
Navigate to http://localhost:8080/numbers/5/add/15 in a browser and observe the response.
Make sure the backend is started first.
Navigate to the frontend directory and run npm install followed by ng serve
To access the UI navigate to http://localhost:4200/ with a browser.
Unittests can be run using ng test.
Integration test can be run using ng e2e
Harry de Boer
email: hdboer@quintor.nl