How hxndev/event-management-system works
Main Components
• User Interface Layer (Frontend):
• Represented by the InterfaceMain module under Project/EMS. This layer contains all the JavaFX FXML files, controllers, and resources (CSS, images, audio files).
• Different UI views exist for customer, employee, manager, etc., as visible in files like cust_signin.fxml, emp_signin.fxml, mgr_menu.fxml, etc.
• Business Logic / Application Layer:
• The core application logic contained in Java files such as Main.java, controllers (Main_Menu_Controller.java, cust_edit_Controller.java, etc.), and model classes (Customer.java, Event.java, Employee.java, etc.).
• Data Access / Persistence Layer:
• Includes classes like CustomerDB.java, EmployeeDB.java, EventDB.java, etc., for interacting with the MySQL database.
• The “For SQL” folder contains text files with SQL queries to set up the database schema and dummy data.
• External Libraries and Frameworks:
• JavaFX (and the provided JavaFX SDK) is used for UI rendering.
• MySQL Connector/J (mysql-connector-java-8.0.22.jar) for database connectivity.
• Additional libraries for email handling (mail.jar, smtp-1.6.2.jar, etc.) and other Java dependencies.
Relationships and Interactions
• The UI layer (build with JavaFX) interacts directly with the controllers when users perform actions, such as sign-in, account creation, or booking an event.
• Controllers then delegate tasks to business logic/service classes which implement workflows and validations.
• Business logic calls the data access components to store or retrieve information from the MySQL database.
• External libraries (JavaFX components, mail API, etc.) support these layers and are integrated as dependencies.
Architectural Patterns and Design Principles
• MVC (Model-View-Controller) Pattern: The separation between JavaFX views (FXML files), controllers, and models is evident.
• Layered Architecture: The system is organized into presentation (UI/FX), business logic, and data persistence layers.
• Use of external libraries for modularity (JavaFX for GUI, MySQL connector for persistence, email libraries for notifications).
Relevant Technologies
• Java and JavaFX for the desktop application.
• MySQL for the database.
• Enterprise Architect (via EAPX files) for documenting system design.
• External libraries for email services and additional GUI elements (like JFoenix).
Instructing the Principal Software Engineer
• Detail the interactions, for example:
• User triggers an event via the UI.
• Controllers capture the event and call the corresponding business logic function.
• The business logic interacts with the DB layer to persist or retrieve data.
• Upon successful operation, a response is sent back via the controller to update the UI.