How gustavodejesus/mentoria-java works
Project type and purpose
• This is a desktop Java application built with JavaFX. It serves as a teaching platform (“Mentoria Java”) where students build a CRUD‐style desktop app covering clients, products, orders, coupons, payment methods, vendors, and pets.
• It uses Maven for build and dependency management, JavaFX for UI, plain Java domain/model classes for business logic, and a simple relational database accessed via a custom DataSource class.
File structure
• Top‐level:
• pom.xml, mvnw scripts – Maven build/configuration
• scripts/ – helpers to install JavaFX on each OS
• src/main/java/br/com/mentoriajava/… – code organized by feature packages:
– base (common domain classes: Pessoa, Endereco, CPF validation)
– clientes, cupons, formaspagamento, pedido, produtos, vendedores, exemplo (Pet)
– database (PetDataSource)
– HomeApp.java & PedidoApp.java – main application entry points
• There's no separate “service” or “controller” packages; the JavaFX Screen classes (e.g., ClientesScreen.java) serve both as controllers and views.
• Only one DataSource class suggests a lightweight persistence layer.
README for additional insights
• Confirms Java 23+, JavaFX, Maven, relational DB.
• Emphasizes JavaFX VM options, but that only affects local setup, not runtime architecture.
Detailed capture of essential elements
• Model classes under “Domain Model” with sub-groups (base, clientes, cupons, etc.)
• PetDataSource as the representative of persistence; note that additional DataSources would slot here
• Maven lifecycle (Compile → Test → Package) feeding into a runnable JAR with JavaFX modules attached