How adityagujjar2001-ui/parcel-management-system works
This is a browser-based parcel booking and management application. Customers register or log in, create bookings, view dashboard/invoice information, and track parcels; officers can update pickup windows and parcel status. The browser serves static pages and submits API requests to the Java HTTP server, which delegates business rules to AppService and persistence to DAOs backed by MySQL. The README documents the complete request flow; sampled code confirms representative service, DAO, and database behavior. Some endpoint details and page-to-feature wiring are documented but not fully excerpted.
Main entry points: WebServer.java HTTP server · BookingDao.java Booking records · UserDao.java User records · AppService.java Accounts
Components 16
Browser UI
- UI pages
projectBL/web - UI interactions
projectBL/web/app.js
HTTP API
- HTTP server
projectBL/src/projectBL/WebServer.java
Parcel Workflows
- Accounts
projectBL/src/projectBL/service/AppService.java - Parcel booking
projectBL/src/projectBL/service/AppService.java - Tracking and dashboard
projectBL/src/projectBL/service/AppService.java - Invoice lookup
projectBL/src/projectBL/service/AppService.java - Officer updates
projectBL/src/projectBL/service/AppService.java - User model
projectBL/src/projectBL/model/User.java - Booking model
projectBL/src/projectBL/model/Booking.java - Service results
projectBL/src/projectBL/model/Result.java
Persistence
- User records
projectBL/src/projectBL/dao/UserDao.java - Booking records
projectBL/src/projectBL/dao/BookingDao.java - JDBC setup
projectBL/src/projectBL/dao/Database.java - MySQL addydb
Other components
- Customer or officer
Connections 22
- Customer or officer → UI pages: uses
README.md - UI pages → UI interactions: loads scripts
README.md - UI interactions → HTTP server: sends API requests
README.md - HTTP server → Accounts: delegates requests
README.md - HTTP server → Parcel booking: delegates requests
README.md - HTTP server → Tracking and dashboard: delegates requests
README.md - HTTP server → Invoice lookup: delegates requests
README.md - HTTP server → Officer updates: delegates requests
README.md - Accounts → User records: reads and writes
projectBL/src/projectBL/service/AppService.java - Parcel booking → Booking records: saves booking
projectBL/src/projectBL/service/AppService.java - Tracking and dashboard → Booking records: reads bookings
projectBL/src/projectBL/service/AppService.java - Invoice lookup → Booking records: looks up booking
projectBL/src/projectBL/service/AppService.java - Invoice lookup → User records: looks up owner
projectBL/src/projectBL/service/AppService.java - Officer updates → Booking records: updates booking
projectBL/src/projectBL/service/AppService.java - User records → JDBC setup: gets connections
projectBL/src/projectBL/dao/UserDao.java - Booking records → JDBC setup: gets connections
projectBL/src/projectBL/dao/BookingDao.java - JDBC setup → MySQL addydb: initializes schema
projectBL/src/projectBL/dao/Database.java - User records → User model: constructs and persists
projectBL/src/projectBL/dao/UserDao.java - Booking records → Booking model: constructs and persists
projectBL/src/projectBL/dao/BookingDao.java - Parcel booking → Booking model: creates booking
projectBL/src/projectBL/service/AppService.java - HTTP server → Service results: formats service results
projectBL/src/projectBL/WebServer.java - Accounts → Service results: returns results
projectBL/src/projectBL/service/AppService.java