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