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 [email protected]: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.