How lunarsheep00/shippingmanagement works
This is a Vue 3 and Express shipping-management platform. Users authenticate, then manage ships, cargo/orders, crew, routes/voyages/dispatches, track voyages, and review operational reports; frontend views call a REST API backed by MySQL. The graph preserves those documented capabilities. Several frontend-to-API and optional map relationships are documented or inferred from endpoint naming rather than demonstrated by sampled calls, so those links are dashed.
Main entry points: router/index.ts App navigation · src/index.ts Express API server · api.ts REST client · database.ts MySQL connection pool
Components 25
Web client
- App navigation
frontend/src/router/index.ts - Login and profile
frontend/src/views/Login.vue - Authentication state
frontend/src/stores/auth.ts - REST client
frontend/src/utils/api.ts
Shipping operations
- Ship management
frontend/src/views/Ships.vue - Cargo and orders
frontend/src/views/Cargos.vue - Crew management
frontend/src/views/Crews.vue - Routes and dispatch
frontend/src/views/Routes.vue
Tracking and analytics
- Dashboard
frontend/src/views/Dashboard.vue - Statistical reports
frontend/src/views/Reports.vue - Trajectory visualization
frontend/src/views/TrackVisualization.vue - Track playback logic
frontend/src/composables/useShipTrack.ts - AMap rendering
frontend/src/composables/useAMap.ts
API services
- Express API server
backend/src/index.ts - Authentication API
backend/src/routes/auth.ts - Ship API
backend/src/routes/ships.ts - Cargo API
backend/src/routes/cargos.ts - Crew API
backend/src/routes/crews.ts - Route and voyage API
backend/src/routes/route.ts - Reports API
backend/src/routes/reports.ts - Tracking API
backend/src/routes/tracks.ts
Persistence and access
- JWT access control
backend/src/middleware/auth.ts - MySQL connection pool
backend/src/config/database.ts
Other components
- Shipping user
- MySQL database
Connections 44
- Shipping user → App navigation: opens
README.md - App navigation → Login and profile: routes to
frontend/src/router/index.ts - App navigation → Ship management: routes to
frontend/src/router/index.ts - App navigation → Cargo and orders: routes to
frontend/src/router/index.ts - App navigation → Crew management: routes to
frontend/src/router/index.ts - App navigation → Routes and dispatch: routes to
frontend/src/router/index.ts - App navigation → Dashboard: routes to
frontend/src/router/index.ts - App navigation → Statistical reports: routes to
frontend/src/router/index.ts - App navigation → Trajectory visualization: routes to
frontend/src/router/index.ts - Login and profile → Authentication state: uses
frontend/src/views/Login.vue - Authentication state → REST client: calls
frontend/src/stores/auth.ts - Ship management → REST client: calls
frontend/src/views/Ships.vue - Cargo and orders → REST client: calls
frontend/src/views/Cargos.vue - Crew management → REST client: calls
frontend/src/views/Crews.vue - Routes and dispatch → REST client: calls
frontend/src/views/Routes.vue - Dashboard → REST client: calls
frontend/src/views/Dashboard.vue - Statistical reports → REST client: calls
frontend/src/views/Reports.vue - Trajectory visualization → REST client: requests data
- Trajectory visualization → Track playback logic: uses
- Track playback logic → AMap rendering: renders on
- REST client → Express API server: sends REST requests
- Express API server → Authentication API: mounts
backend/src/index.ts - Express API server → Ship API: mounts
backend/src/index.ts - Express API server → Cargo API: mounts
backend/src/index.ts - Express API server → Crew API: mounts
backend/src/index.ts - Express API server → Route and voyage API: mounts
backend/src/index.ts - Express API server → Reports API: mounts
backend/src/index.ts - Express API server → Tracking API: mounts
backend/src/index.ts - Authentication API → MySQL connection pool: queries
backend/src/routes/auth.ts - Ship API → MySQL connection pool: queries
backend/src/routes/ships.ts - Cargo API → MySQL connection pool: queries
backend/src/routes/cargos.ts - Crew API → MySQL connection pool: queries
backend/src/routes/crews.ts - Route and voyage API → MySQL connection pool: queries
backend/src/routes/route.ts - Reports API → MySQL connection pool: queries
backend/src/routes/reports.ts - Tracking API → MySQL connection pool: queries
backend/src/routes/tracks.ts - Authentication API → JWT access control: uses
backend/src/routes/auth.ts - Ship API → JWT access control: uses
backend/src/routes/ships.ts - Cargo API → JWT access control: uses
backend/src/routes/cargos.ts - Crew API → JWT access control: uses
backend/src/routes/crews.ts - Route and voyage API → JWT access control: uses
backend/src/routes/route.ts - Reports API → JWT access control: uses
backend/src/routes/reports.ts - Tracking API → JWT access control: uses
backend/src/routes/tracks.ts - MySQL connection pool → MySQL database: connects to
backend/src/config/database.ts - Shipping user → AMap rendering: views voyages
README.md