IT1901-individual/README.md

29 lines
2.0 KiB
Markdown
Raw Normal View History

2021-09-05 21:50:42 +02:00
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)][gitpod]
2021-09-06 01:08:18 +02:00
[![Pipeline Status](https://gitlab.stud.idi.ntnu.no/it1901/students-2021/oysteikt/badges/master/pipeline.svg)][pipeline]
[![Coverage](https://gitlab.stud.idi.ntnu.no/it1901/students-2021/oysteikt/badges/master/coverage.svg)][coverage]
2021-08-13 15:46:07 +02:00
# Javafx template
2021-08-11 16:34:03 +02:00
2021-09-05 21:50:42 +02:00
A repository with ~~three~~ `one` variants of a javafx projects, with maven setup for Java 16 and JavaFX 16, and JUnit 5 (Jupiter) and TestFX for testing.
2021-08-13 15:46:07 +02:00
2021-09-05 21:50:42 +02:00
To make the project(s) more interesting, it is the start of an [RPN][rpn] calculator (look for `// TODO`) markers). The core logic is almost implemented (in [Calc.java][calc.java]), the fxml file (in [Calc.fxml][calc.fxml] is almost complete, but the controller class (in [CalcController.java][calc_controller.java] is pretty limited. And last, but not least, there is a TestFX-based test (in [CalcAppTest.java][calc_app_test.java], see the [README][readme] for details about what it tests).
2021-08-13 15:46:07 +02:00
## Trying it out
2021-08-18 16:58:36 +02:00
All projects can be tried out by cd-ing into the corresponding folder and using `mvn`:
2021-08-13 15:46:07 +02:00
2021-09-05 19:27:17 +02:00
- compile with `mvn compile` (after `cd oysteikt-calc` of course)
2021-08-13 15:46:07 +02:00
- test with `mvn test` (it should fail until you complete the RPN calculator)
- run with `mvn javafx:run` (it should open, but not work properly)
2021-09-05 21:50:42 +02:00
[gitpod]: https://gitpod.stud.ntnu.no/#https://gitlab.stud.idi.ntnu.no/it1901/students-2021/oysteikt
2021-09-06 01:08:18 +02:00
[pipeline]: https://gitlab.stud.idi.ntnu.no/it1901/students-2021/oysteikt/-/pipelines
[coverage]: https://it1901.pages.stud.idi.ntnu.no/students-2021/oysteikt/
2021-09-05 21:50:42 +02:00
[rpn]: https://en.wikipedia.org/wiki/Reverse_Polish_notation
[calc.java]: oysteikt-calc/src/main/java/app/Calc.java
[calc.fxml]: oysteikt-calc/src/main/resources/app/Calc.fxml
[calc_controller.java]: oysteikt-calc/src/main/java/app/CalcController.java
[calc_app_test.java]: oysteikt-calc/src/test/java/app/CalcAppTest.java
[readme]: oysteikt-calc/src/test/java/app/README.md