|
|
# CPSC 233 Tracker Project
|
|
|
|
|
|
**Consumer and Seller Retail Program**
|
|
|
|
|
|
This program is designed for both sellers and consumers of certain products in a retail setting. Sellers can add products, change their products, and see information about their products and sales. Consumers can purchase products, rate products, as well as see information about the products and their purchases.
|
|
|
|
|
|
Data is a class that creates and holds the object with all the information about the products in our program.
|
|
|
|
|
|
HelloApplication is the class that launches the GUI of the program.
|
|
|
|
|
|
HelloController is the class which controls the GUI portion and is responsible for the functionality.
|
|
|
|
|
|
FileLoader and FileSaver load and save files with the information about the products in our program.
|
|
|
|
|
|
Product is an object class where each object is a product with various information and functionality.
|
|
|
|
|
|
DefaultValues and TypeOfAttributes are enums which help with coloring text and changing attributes.
|
|
|
|
|
|
ProductProfitComparator and ProductRatingComparator are both comparators which help with sorting products by profit and rating respectively.
|
|
|
|
|
|
Main and Menu launch and control the workings of the non-GUI portion, respectively
|
|
|
|
|
|
Partner: Richard Nguyen Tutorial: T17 UCID: 30206387 UCalgaryEmail: richard.nguyen1@ucalgary.ca
|
|
|
|
|
|
Partner: Mohammad Hashmi Tutorial: T13 UCID: 30206049 UCalgaryEmail: mohammad.hashmi1@ucalgary.ca
|
|
|
|
|
|
Partner: Oliver Vander Werf Tutorial: T13 UCID: 30219253 UCalgaryEmail: oliver.vanderwerf@ucalgary.ca
|
|
|
|
|
|
## How to run
|
|
|
|
|
|
**If java JDK is not already installed:**
|
|
|
|
|
|
Go to the following website and download java JDK 22 for windows (x64 Installer) https://www.oracle.com/ca-en/java/technologies/downloads/#java22 Then run the installer and follow the steps to download the jdk
|
|
|
|
|
|
**If JavaFX SDK is not already installed:**
|
|
|
|
|
|
For the javafx, go to the following website and download javafx SDK 22 for windows (x64) https://gluonhq.com/products/javafx/ Then extract the folder and place it in the folder C:\\Program Files\\Java
|
|
|
|
|
|
**Run using .jar file**
|
|
|
|
|
|
Once you have the JavaFX SDK, you can open up the windows command terminal, navigate to the project folder, and paste the following to run:
|
|
|
|
|
|
java --module-path "C:\\Program Files\\Java\\javafx-sdk-22\\lib" --add-modules javafx.controls,javafx.fxml --enable-preview -jar CPSC-233-Tracker-Project-FUI.jar |
|
|
\ No newline at end of file |