How dbpcod/cnpm_qlsach works
Project type and purpose
• This is a two-tier, full-stack desktop application written in Java.
• Purpose: Manage a bookstore’s inventory, orders, and warehouse in real time, supporting multiple simultaneous clients via socket communication.
File structure
• Top-level directories:
• Source/Client – Java Swing GUI, DTOs, custom components, client socket code.
• Source/Server – Socket server, BLL (business logic), DAO (data access), DTOs, DB connection.
• setupDB – SQL scripts to create and seed MySQL database.
• libs – External JARs (MySQL connector, SwingX, charting, JSON).
• Client modules follow feature areas: BH (sales), NK (warehouse), QL (admin), GUI, DTO, Customize.
• Server modules: ConnectDB, DAO for CRUD, BLL for business rules, server socket handlers.
README for additional insights
• Confirms usage of MySQL (via XAMPP), NetBeans, Java sockets.
• Describes workflow: start XAMPP → import DB → launch server main.java → configure client IP → start client Login.java.
Elements
• Blue for client side
• Green for network sockets
• Orange for server side
• Red for database
• Rectangles for modules