Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

erikbjo/tds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Train Dispatch System 🚂

Java shield Maven shield Spring boot shield IDE

Project description 📝

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.

How to run the project 🚀

  1. Clone the repository with:
git clone [email protected]:erikbjo/tds.git
  1. Run the program with:
./mvnw clean spring-boot:run

or

  1. Download the jar file from git releases
  2. Run the program with:
java -jar tds-3.jar

How to run the tests 🧪

  1. Clone the repository
  2. Run the tests with:
./mvnw clean test

How to use the program 🖥

When the program is running, you can use the following command to get help:

help

Contact 📧

If you have any questions, you can contact me here

Project structure 📁

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

Troubleshooting 🛠

If you get any persistence errors, try to delete the tdsDB directory and run the program again.

About

Train Dispatch System to manage train departures. Exam project for IDATG1003.

Topics

Resources

License

Stars

Watchers

Forks

Languages