How mehmettilhann/e-ticaret-form-uygulamasi works
Project Type and Purpose
• This is a standalone desktop Java e-commerce form application built with Swing (JFrame) as the UI toolkit, and MySQL as the persistent store.
• It has two primary user roles:
• Administrator: can add, delete, and update products
• Customer: can register, log in, browse products, add to cart, and complete shopping
• All data (users, products, cart items) is stored in a MySQL database.
File Structure
• Top-level:
• ETicaret/src – contains all Java packages
• README.md – high-level description
• ticaret_1 (1).sql – database schema script
• Inside src:
• Administrator – admin UI classes (adminmenu.java, adminpanel.java)
• client – customer UI classes (DashBoard, UrunListeleme, SepetClient, CuzdanClient, etc.), domain models (Urun, Kullanici), custom exception (HataliSifreException)
• Service – business logic layer (GirisyapServices, SepetService, UyeolService)
• dbconnet – persistence utility (DatabaseManager for JDBC connections)
• dto – data transfer objects (UrunDto, UyeolRequest)
• MainClient.java – application entry point
README for Additional Insights
• Confirms Swing UI + MySQL, two user flows.
Detail
• DTO objects as part of the interaction between Service and DatabaseManager
• Exception handling flow (e.g., HataliSifreException thrown by Service to UI)
• SQL script import at startup if applicable