Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Latest commit

 

History

1,094 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitpod Ready-to-Code

Group gr2219 repository

Warning

Note that this repository originally was created on gitlab.

The original repository does not exist anymore and no issues/merges or other types of information related to gitlab is included in the github repository.

Also note that functionality connected to the gitlab repo, such as gitpod or pipeline, does not work.

Information related to students without github user will not be displayed - for example statistics on commits.

Travelu

We are making an application called Travelu. We have written about its functionality in the README.md in the travelu folder.

Group members

  • Torbjørn Wiik
  • Ken Van Nguyen
  • Bendik Norli
  • John Hausberg Anfindsen

Project contents

This project contains:



Building & running the project

The project is built with maven. To run the project, in terminal:

  • cd travelu to change into project-folder
  • mvn install in root folder
    • Note: this also runs tests and installs package
  • mvn -pl restserver spring-boot:run to start the server handling the rest-api

In a new terminal:

  • mvn -pl fxui javafx:run to start the application

Notice:
fxui/module-info is deleted for enabling run through Maven.
See module-info for explanation

Installing the project

The project can be installed with JLink and JPackage. This involves creating a binary executable for the application which can then be run by your computer. To install the project, in terminal:

  • cd fxui to change into ui-folder
  • mvn clean compile javafx:jlink to generate a zip file
  • cd .. to change into project-folder
  • mvn jpackage:jpackage -f ./fxui/pom.xml to create a custom runtime image

It is now possible to run the app by unzipping the zip file and running the executable file.

This process is only functional locally (on mac). Teaching assistant has clarified on Piazza that this is sufficient.

Note: The server must be running for the app to work.

Testing & coverage

After building project, run the following commands in terminal to run tests and generate coverage reports:

See documentaion about test coverage for more information.

NOTE: The UI tests will fail if you have a spring-boot server running when you run the tests. You can either stop the server or run the tests with the -DskipUITests=true flag.

Tech-stack

  • Backend: Java
  • Frontend: JavaFX
  • Persistence: JSON
  • Testing backend: JUnit
  • Testing frontend: TestFX
  • Project management: Maven

Boilerplate and Gitpod

Integrated functions in VSCode was used to create a boilerplate for the project. This ensured that everything was added correctly. We then followed up with changing pom.xml with the correct version for running on silicon macs and adding dependencies for testing.

Gitpod-tag got added to the README.md in root to enable remote work and easy access for the course-team

About

Travel logger application. Written as part of the IT1901 course at NTNU during Fall 2022.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages