Welcome to the Time Master repo. For detailed description about the application, please visit Time Master Application.
The project files lies in the time-master
-directory. Navigate to it using cd time-master
in the terminal. All of the main-logic, persistency and user-interface is in this folder.
Documentation for the different releases can be found in the docs
-directory, or by following the links below:
The project is set up for Gitpod.
- Use the button above, or the main button in Gitlab to open an instance of the repo.
- When the instance is ready, the terminal is automatically initialized in the
time-master
-directory. - Maven dependencies should already have been installed.
- Navigate to
fxui
-directory with:cd fxui
- Execute
mvn clean javafx:run
in the terminal.
- In the terminal, execute:
git clone https://gitlab.stud.idi.ntnu.no/it1901/groups-2022/gr2227/gr2227.git
- Open the folder as a maven project in your preferred IDE.
- Navigate to the
rest
-directory with:cd time-master/rest
- Execute
mvn exec:java
to run a local server. - Open a new terminal.
- Navigate to the
time-master
-directory with:cd time-master
- Execute
mvn clean install
- Navigate to
fxui
-directory with:cd fxui
- Run the application with:
mvn javafx:run
The application is built to support and run with javafx:run
. See developer installation above for detailed description on how to run the application.
The test can be run with mvn test
from the time-master
-directory. This will generate a report with test coverage. The report is stored as an index.html file at time-master/coverage/target/site/jacoco-aggregate/index.html
, and can be opened in the browser.
It is possible to run the tests both with and without the server running. Follow instructions 3 and 4 in developer installation to start the server.
After running the application and test, a report over the code quality can be made with mvn site
. It can be found at time-master/coverage/target/site/checkstyle-aggregate.html
.
A report over detected bugs is made as well. It can be found in each of the modules at time-master/{module}/target/site/spotbugs.html
.
HTML pages with documentation for every public or protected class/method can be generated with mvn site
. Main HTML-file can be found at time-master/coverage/target/site/javadocs/index.html
.
To generate javadoc for all methods in a module (including private methods), start a terminal in the respective module and execute mvn javadoc:javadoc
.
The project can be packaged to make distribution easier. The following guide will generate both a compressed folder, and a system-spesific executable file.
- Navigate to
fxui
-directory with:cd fxui
- Execute
mvn package
The .jar file can be found at time-master/fxui/target/
.
- Make sure to have .NET 3.5 installed. (Microsoft download here...)
- Make sure to have WiX Toolset v3 installed. (Github download here...)
- Navigate to
fxui
-directory with:cd fxui
- Execute
mvn clean compile javafx:jlink jpackage:jpackage
The .zip file can be found at time-master/fxui/target/
.
The .exe file can be found at time-master/fxui/target/dist/
.
- Navigate to
fxui
-directory with:cd fxui
- Execute
mvn clean compile javafx:jlink jpackage:jpackage
The .zip file can be found at time-master/fxui/target/
The .dmg file can be found at time-master/fxui/target/dist/
.