How alikhaled01/client_server_desktopapplication works
This is a desktop book-inventory and purchasing application: users create accounts or log in, browse books, add items to a cart, check balance, deposit funds, and purchase; an operator can add books and view active-client counts. The client and server exchange length-prefixed JSON over TCP, and the server persists users, books, and purchases in SQLite. The README is empty, and the server excerpt omits parts of request dispatch and purchase logic, so uncertain links are left out or marked unverified.
Main entry points: serverGUI.py Request Handler · books.db Book Database · main.py Account Screens
Components 12
Desktop Client
- Account Screens
Client Side/main.py - Shop Screens
Client Side/main.py
TCP Server
- Request Handler
Server Side/serverGUI.py
Commerce Features
- Accounts
Server Side/serverGUI.py - Book Catalog
Server Side/serverGUI.py - Cart
Server Side/serverGUI.py - Purchasing
Server Side/serverGUI.py - Balance
Server Side/serverGUI.py - Admin Tools
Server Side/serverGUI.py
Persistent State
- Book Database
Server Side/books.db
Other components
- Shopper
- Operator
Connections 17
- Shopper → Account Screens: uses
Client Side/main.py - Shopper → Shop Screens: uses
Client Side/main.py - Operator → Admin Tools: uses
Server Side/serverGUI.py - Account Screens → Request Handler: sends JSON
- Shop Screens → Request Handler: sends JSON
Client Side/main.py - Request Handler → Accounts: dispatches
Server Side/serverGUI.py - Request Handler → Book Catalog: dispatches
Server Side/serverGUI.py - Request Handler → Cart: dispatches
Server Side/serverGUI.py - Request Handler → Purchasing: dispatches
Server Side/serverGUI.py - Request Handler → Balance: dispatches
Server Side/serverGUI.py - Accounts → Book Database: reads/writes
Server Side/serverGUI.py - Book Catalog → Book Database: reads/writes
Server Side/serverGUI.py - Cart → Book Database: reads/writes
Server Side/serverGUI.py - Purchasing → Book Database: reads/writes
Server Side/serverGUI.py - Balance → Book Database: reads/writes
Server Side/serverGUI.py - Admin Tools → Book Catalog: adds books
Server Side/serverGUI.py - Admin Tools → Request Handler: reports clients
Server Side/serverGUI.py