A companion application for discgolfing at the Trondheim local courses; Lade and Dragvoll. The repository contains:
- Documentation
- Configuration Files
- Pom.xml files for Maven modules
- Checkstyle configuration files
- Spotbugs configuration files
- Jacoco configuration files
- Tests
- Junit5 test cases for the logic
- TestFX test cases for the GUI
- Several Maven modules
A full description of the project architecture can be found in the release 3 documentation
The application exists within the discogolf directory at path:
gr2224/discogolf/
and the application can be run from the DiscoGolfApp directory at path:
gr2224/discoGolf/ui/src/main/java/ui/DiscoGolfApp.java
The data is stored in a .json file (database.json) at the user's home directory:
C:/Users/username/database.json
All maven commands must be run from the /discoGolf/
directory:
- To run the application:
mvn javafx:run -pl ui
- To run the tests:
mvn test
- To verify
mvn verify
- To compile project from scratch
mvn clean install
- Navigate into the restapi directory
cd restapi
- Type
./mvnw spring-boot:run
to start the server
Navigate into the ui directory :
cd ui
Compile the project to make sure all dependancies are packaged properly:
mvn clean install
Convert the project into an executable:
mvn clean compile javafx:jlink jpackage:jpackage