Train Dispatch System is a Java application made to manage train departures. The application is made with Spring Boot and Maven, and uses Derby as a database. The user-interface is made with Spring Shell. Exam project for the course IDATG1003 at NTNU GjΓΈvik.
The project is finished and archived.
- Clone the repository with:
git clone git@github.com:erikbjo/tds.git
- Run the program with:
./mvnw clean spring-boot:run
or
- Download the jar file from git releases
- Run the program with:
java -jar tds-3.jar
- Clone the repository
- Run the tests with:
./mvnw clean test
When the program is running, you can use the following command to get help:
help
If you have any questions, you can contact me here
root
βββ src
β βββ main
β β βββ java
β β β βββ no
β β β βββ ntnu
β β β βββ erbj
β β β βββ tds
β β β βββ dao
β β β β βββDao.java
β β β β βββDepartureDao.java
β β β β βββStationDao.java
β β β β βββTrainDao.java
β β β β βββWagonDao.java
β β β β
β β β βββ model
β β β β βββ departures
β β β β β βββ Departure.java
β β β β β βββ DepartureBuilder.java
β β β β β
β β β β βββ Station.java
β β β β βββ Train.java
β β β β βββ Wagon.java
β β β β βββ WagonType.java
β β β β
β β β βββ shared
β β β β βββ utilites
β β β β βββ StringValidator.java
β β β β βββ TimeParser.java
β β β β
β β β βββ ui
β β β β βββ commands
β β β β β βββ CreateCommands.java
β β β β β βββ DepartureCommands.java
β β β β β βββ HelperCommands.java
β β β β β βββ TimeCommands.java
β β β β β βββ TrainCommands.java
β β β β β βββ WagonCommands.java
β β β β β
β β β β βββ controllers
β β β β β βββ TimeController.java
β β β β β
β β β β βββ utilites
β β β β βββ AnsiColors.java
β β β β βββ Colorize.java
β β β β βββ Printer.java
β β β β βββ SortUtility.java
β β β β βββ TablePrinter.java
β β β β βββ TdsLogger.java
β β β β
β β β βββ TdsApplication.java (main class)
β β βββ resources
β β βββ logback.xml
β β βββ application.properties
β β
β βββ test
β βββ java
β βββ no
β βββ ntnu
β βββ erbj
β βββ tds
β βββ model
β βββ DepartureBuilderTest.java
β βββ DepartureTest.java
β βββ StationTest.java
β βββ TrainTest.java
β βββ WagonTest.java
βββ .gitignore
βββ LICENSE
βββ mvnw
βββ mvnw.cmd
βββ pom.xml
βββ README.md
If you get any persistence errors, try to delete the tdsDB directory and run the program again.