- carrentalsystem
- This folder contains the main class that will be used to run the application.
- Classes
- This folder contains all the classes we have such as Admin, Customer, and Booking.
- DAO
- This folder contains all the Data Access Object classes.
- Processes
- This folder contains all the process classes we have like LoginProcess.
- UserInterface
- This folder contains all files related to our user interface. We will have 1 JFrame, and many JPanels.
- Validators
-
This folder contains all validators that will be used to validate users' input in order to make sure the input are inline with our Data Files' format.
-
Some validators are general. An example is the DateTimeValidator. These validators can be used by other validators.
-
Class-specific validators are validators that are to be used by their respective classes. For example,
CarValidator
will be used by theCar
class. InsideCarValidator
, there will be methods likevalidateCarCreationInput
,validateCarEditInput
, etc.
- DataFiles
- We will ignore this folder in our GitHub repository.
-
Check if Apache Ant is already installed by
ant -version
, if it is not installed, install it from here. -
Installation guide: https://mkyong.com/ant/how-to-install-apache-ant-on-windows/
Configure pathToDataFileDirectory
in src/carrentalsystem/Environment.java
based on your own local directory path.
At the project root directory, run these commands to build the application
ant clean
ant prepare-libs
ant copy-resources
ant compile
ant dist
Head to dist directory, and run the following command:
java -jar CarRentalSystem.jar