How lordverton/danemo-website works
DANEMO is a logistics operations and customer-service platform for freight and related services connecting Europe and Africa. Its principal customer workflow is public shipment registration: the customer submits shipment and tariff details, the API creates customer and order records, and a confirmation email is sent. Staff then manage orders, containers, inventory, and tracking through admin tools, while customers can check shipment status. The graph also includes the documented blog, analytics, and public-service branches. Several route implementations were not sampled, so their internal wiring is intentionally not inferred.
Main entry points: database.ts Database access layer · supabase.ts Supabase · route.ts Self-register API · page.tsx Blog administration
Components 25
Public services
- Shipment registration
app/new-client-form/page.tsx - Self-register API
app/api/public/self-register/route.ts - Tariff catalog
lib/tariff-items.ts - Public tracking
app/tracking/page.tsx
Shipment operations
- Tracking API
app/api/orders/[id]/tracking/route.ts - Order management
app/admin/tracking/page.tsx - Order API
app/api/orders/route.ts - Order updates
app/api/orders/[id]/route.ts - Container operations
app/api/containers/route.ts - Inventory management
app/admin/inventory/page.tsx - Inventory API
app/api/inventory/route.ts - QR scanning
components/qr-scanner.tsx
Customer management
- Client management
app/admin/clients/page.tsx - Customer API
app/api/customers/route.ts
Content and insights
- Public blog
app/blog/page.tsx - Blog administration
app/admin/blogs/page.tsx - Blog API
app/api/blog-posts/route.ts - Blog media upload
app/api/blog-media/route.ts - Analytics dashboard
app/admin/analytics/page.tsx
Shared platform
- Database access layer
lib/database.ts - Supabase
lib/supabase.ts - Email notifications
lib/notify.ts
Other components
- Customer
- Staff user
- Email provider
Connections 33
- Customer → Shipment registration: enters details
- Shipment registration → Self-register API: submits shipment
- Self-register API → Tariff catalog: resolves tariff
- Self-register API → Database access layer: creates records
- Database access layer → Supabase: reads and writes
- Self-register API → Email notifications: requests confirmation
- Email notifications → Email provider: sends email
- Customer → Public tracking: checks shipment
- Public tracking → Tracking API: requests status
- Tracking API → Database access layer: reads tracking
- Staff user → Order management: manages orders
- Order management → Order API: requests orders
- Staff user → Order updates: updates order
- Order API → Database access layer: manages orders
- Order updates → Database access layer: updates order
- Staff user → Container operations: manages containers
- Container operations → Supabase: reads and writes
- Staff user → Inventory management: manages stock
- Inventory management → Inventory API: requests inventory
- Inventory API → Supabase: reads and writes
- Staff user → QR scanning: scans package
- Staff user → Client management: manages clients
- Client management → Customer API: requests customers
- Customer API → Database access layer: manages customers
- Customer → Public blog: reads articles
- Public blog → Blog API: loads posts
- Staff user → Blog administration: manages articles
- Blog administration → Blog API: edits posts
- Blog administration → Blog media upload: uploads media
- Blog API → Database access layer: reads and writes
- Blog media upload → Supabase: stores media
- Staff user → Analytics dashboard: views metrics
- Analytics dashboard → Supabase: loads metrics