ziamohseni / IV1351_Tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task 4

How to execute

  1. Clone this git repository
  2. Change to the newly created directory cd IV1351_Tasks/task4
  3. Make sure there is a database which can be reached with the url on line 38 in SchoolDAO.java.
  4. Create the tables described by IV1351_Tasks/SQL-schema.sql (postgres).
  5. Insert the dummy data from IV1351_Tasks/Dummy-data.sql to the database.
  6. Build the project with the command mvn install
  7. Run the program with the command mvn exec:java

Commands for the bank program

  • help displays all commands.
  • list Lists instruments. Options: all, <instrument type>.
  • rent Rents an instrument. Options: <instrument id> <student id>.
  • terminate Terminates the rental of an instrument. Options: <rental id>.
  • quit quits the application.

About


Languages

Language:Java 100.0%