How joshuamc1/proyecto-tienda-de-ropa works
1. Project type and runtime
- This is a Java desktop application built with JavaFX and organized for NetBeans/Ant (build.xml, nbproject/, manifest.mf).
- The app is a store-management system for “Yosary’s Store,” with modules for login, main menu, sales, inventory, users, profile, dashboard, and reports.
2. Top-level architectural style
- The code follows a presentation / controller / model / database structure.
- UI is defined in FXML views under src/vista.
- JavaFX controllers live in src/controlador.
- Business/data models and DB access live in src/modelo.
- The database schema is stored separately in DATABASE/tienda_de_ropa.sql.
3. Application entry and navigation
- src/controlador/launch.java is the app entry point.
- The first visible flow is likely Login → Main Menu → module screens.
- MainMenuController acts as the central navigation hub to open the other modules.
4. Presentation layer
- Each major screen has a matching FXML file and controller:
- login.fxml / LoginController
- mainMenu.fxml / MainMenuController
- dashboard.fxml / DashboardController
- sales.fxml / SalesController
- inventory.fxml / InventoryController
- users.fxml / UsersController
- userProfile.fxml / UserProfileController
- reports.fxml / ReportsController
- This suggests a fairly standard screen-per-module JavaFX structure.
5. Inventory and product-maintenance subsystem
- Inventory-related maintenance is split into specialized controllers under src/controlador/ProductOptions:
- CreateProductTypeController
- CreateProductGenreController
- CreateSupplierController
- CreateDiscountController
- MarcaController
- These correspond to auxiliary catalog screens in src/vista/ProductOptions/.
- The related data entities live in src/modelo/inventoryModel/:
- product
- tipoProducto
- generoProducto
- proveedor
- marca
- descuentos
6. Sales subsystem
- SalesController and sales.fxml represent the sales workflow.
- src/controlador/clases/Fact_Model.java likely supports invoice/receipt or transaction data.
- The sales module probably reads product/customer data from the database and writes completed sales back to it.
7. User administration and profile subsystem
- UsersController manages the administrative user screen.
- UserProfileController manages the current user’s profile or account details.
- Supporting classes in src/controlador/clases/ include User_Model.java and Usuario.java, which likely represent user records and session/user state.
8. Reporting subsystem
- ReportsController is the UI layer for reports.
- src/modelo/reports/generateReports.java contains report-generation logic.
- The repository includes report1.jrxml, indicating JasperReports is used to define and render reports.
9. Database access and persistence
- src/modelo/ConexionMySQL.java is the central MySQL connection helper.
- The repository includes mysql-connector-java-8.0.23.jar, confirming direct JDBC access to MySQL.
- The SQL dump in DATABASE/tienda_de_ropa.sql is the authoritative database schema and seed data for the application.
10. Shared utility layer
- src/modelo/funciones/funciones.java appears to hold shared helper functions used across modules.
- This is likely where validation, formatting, or common database-related helpers are centralized.
11. External libraries and why they matter
- JasperReports and Groovy are present for reporting.
- Apache POI is bundled, which suggests spreadsheet import/export or document generation features may exist or be planned.
- Multiple Commons libraries support reporting and data handling.
- These dependencies indicate the app is not just CRUD; it also produces formatted business outputs.
12. Frontend assets and styling
- FXML views are paired with CSS files in src/vista/style/.
- Images are in src/vista/img/.
- The UI is therefore mostly desktop-form based, with per-module styling rather than a shared web-style layout system.
13. Likely data flow across the system
- User interacts with a JavaFX screen.
- The controller validates input and coordinates actions.
- The controller calls model/DB helper classes in src/modelo.
- Data is read from or written to MySQL.
- Reports are generated from persisted data and rendered through JasperReports.
14. Important architectural boundaries for a diagram
- UI boundary: FXML/CSS/images in src/vista.
- Control boundary: JavaFX controllers in src/controlador.
- Domain/data boundary: model classes in src/modelo and src/controlador/clases.
- Persistence boundary: MySQL schema plus JDBC connection helper.
- Reporting boundary: JasperReports-based report generation.
15. What the repo suggests about maturity
- The README checklist shows some modules are complete and others are still pending, so this looks like a student project with active feature growth.
- The architecture is already modular, but several domains are still partially implemented or in progress, especially inventory and purchases.
Main entry points: MainMenuController.java MenuCtrl · SalesController.java SalesCtrl · LoginController.java LoginCtrl · InventoryController.java InventoryCtrl
Components 22
Presentation
JavaFX screens, styling, and assets.
- Login · Authentication screen.
src/vista/login.fxml - Main Menu · Central navigation screen.
src/vista/mainMenu.fxml - Sales · Sales workflow screen.
src/vista/sales.fxml - Inventory · Inventory management screen.
src/vista/inventory.fxml - Users · Administrative user screen.
src/vista/users.fxml - Profile · Current user profile screen.
src/vista/userProfile.fxml - Reports · Reporting screen.
src/vista/reports.fxml
Controllers
Navigation and screen logic for the app.
- Launch · Application startup class.
src/controlador/launch.java - LoginCtrl · Handles sign-in flow.
src/controlador/LoginController.java - MenuCtrl · Main navigation hub.
src/controlador/MainMenuController.java - Dashboard · Summary and overview screen logic.
src/controlador/DashboardController.java - SalesCtrl · Handles sales transactions.
src/controlador/SalesController.java - InventoryCtrl · Coordinates inventory operations.
src/controlador/InventoryController.java - UsersCtrl · Manages users and accounts.
src/controlador/UsersController.java - ProfileCtrl · Handles profile details.
src/controlador/UserProfileController.java - ReportsCtrl · Triggers report generation.
src/controlador/ReportsController.java - Catalog Options · Auxiliary inventory catalogs: product type, genre, supplier, discount, brand.
src/controlador/ProductOptions
Domain & Data
Shared models, inventory entities, and helper classes.
- Inventory Models · Product, type, genre, supplier, brand, and discount entities.
src/modelo/inventoryModel - Shared Models · Invoice and user/session model classes.
src/controlador/clases
Persistence & Reports
MySQL access, schema, and JasperReports generation.
- MySQL Helper · Central MySQL connection utility.
src/modelo/ConexionMySQL.java - Reports Engine · JasperReports generation logic.
src/modelo/reports/generateReports.java - Schema SQL · Database dump and seed data.
DATABASE/tienda_de_ropa.sql
Connections 30
- Launch → LoginCtrl: starts · Entry point opens the login flow.
- LoginCtrl → Login: renders · Controller drives the login screen.
- LoginCtrl → MenuCtrl: authenticates · Successful login transitions to the main menu.
- MenuCtrl → Main Menu: renders · Main menu screen is shown.
- MenuCtrl → Dashboard: opens · Navigation hub launches dashboard.
- MenuCtrl → SalesCtrl: opens · Navigation hub launches sales module.
- MenuCtrl → InventoryCtrl: opens · Navigation hub launches inventory module.
- MenuCtrl → UsersCtrl: opens · Navigation hub launches user administration.
- MenuCtrl → ProfileCtrl: opens · Navigation hub launches profile screen.
- MenuCtrl → ReportsCtrl: opens · Navigation hub launches reports screen.
- Dashboard → MySQL Helper: reads · Dashboard aggregates persisted data.
- SalesCtrl → Sales: renders · Sales controller drives the sales UI.
- SalesCtrl → Shared Models: uses · Sales logic uses invoice/user state models.
- SalesCtrl → MySQL Helper: writes · Completed sales persist through JDBC.
- InventoryCtrl → Inventory: renders · Inventory controller drives the inventory UI.
- InventoryCtrl → Catalog Options: delegates · Inventory module opens catalog-maintenance screens.
- Catalog Options → Inventory Models: manages · Catalog screens maintain product-related entities.
- UsersCtrl → Users: renders · User admin controller drives the users UI.
- ProfileCtrl → Profile: renders · Profile controller drives the profile UI.
- ReportsCtrl → Reports: renders · Reports controller drives the reports UI.
- ReportsCtrl → Reports Engine: generates · Reports UI invokes JasperReports generation.
- Reports Engine → Schema SQL: queries · Reports are built from persisted store data.
- MySQL Helper → Schema SQL: connects to · Connection helper targets the MySQL schema.
- Login → LoginCtrl: binds · FXML is paired with its controller.
- Main Menu → MenuCtrl: binds · FXML is paired with its controller.
- Sales → SalesCtrl: binds · FXML is paired with its controller.
- Inventory → InventoryCtrl: binds · FXML is paired with its controller.
- Users → UsersCtrl: binds · FXML is paired with its controller.
- Profile → ProfileCtrl: binds · FXML is paired with its controller.
- Reports → ReportsCtrl: binds · FXML is paired with its controller.