A study program to explore making web applications using Java by creating a rental-tracking software for a mock rental agency.
This project uses Maven as a build system and Tomcat as a web server.
To install the dependencies and build the project:
mvn clean install
Before anything else, execute the class com.epf.rentmanager.FillDatabase
at least once:
mvn exec:java -Dexec.mainClass="com.epf.rentmanager.persistence.FillDatabase"
To start the web app:
mvn tomcat7:run
The site is available on http://localhost:8080/rentmanager.
This project was build using Java 17.
- H2 database
- Tomcat
- Servlet
- Spring
- JUnit
- Mockito
Some changes could be made to make the project even better, but are not necessary for its working. Some of them are:
- use optional objects for methods that could return nothing, like
findById()
, - add more links to navigate between pages in the web UI, allowing to view the booked vehicle from a reservation,
- simplify the reservation validation in order to not use an intermediary class.
This project is licenced under the Mozilla Public Licence 2.0.
This project was part of a scholar assignment. The initial codebase (commits ff425669bfb596f419192d1d7b695165ab42d512 and e7c5bd9db99c7cc051c916ae8cc86580cd9f602f) is not mine.