Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

MarkusJohansen/IT1901-DiscoGolf

Repository files navigation

Gitpod Ready-to-Code

README

Content

A companion application for discgolfing at the Trondheim local courses; Lade and Dragvoll. The repository contains:

  • Documentation
    • docs folder directory with a folder for each release
    • A contract between the members of the application team
    • This readme file
    • PlantUML diagrams
  • 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
    • Json module for data persistence with Jackson library
    • Core module with the logic classes for the application
    • UI module with the GUI classes for the application: controllers, fxml files and the AppClass for running the application

A full description of the project architecture can be found in the release 3 documentation

Navigation through repository content

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

How to run the application and tests using Maven

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

How to run the server

  1. Navigate into the restapi directory cd restapi
  2. Type ./mvnw spring-boot:run to start the server

How to convert to executable

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

About

School project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published