You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
π LogiTrack β Supply Chain & Shipment Tracking System
A full-stack, AI-powered shipment tracking platform with real-time notifications, role-based access control, and live data sync across all user sessions.
π What is LogiTrack?
LogiTrack is a production-grade supply chain management system that allows Admins, Vendors, and Customers to manage and track shipments in real time. It features an AI support chatbot that understands your shipment data, live push notifications using Server-Sent Events (SSE), automated email alerts on status changes, and a complete audit trail for every shipment lifecycle event.
β¨ Key Features
Feature
Description
π JWT Authentication
Stateless, token-based auth with BCrypt password hashing
π₯ Role-Based Access Control
Separate dashboards and permissions for Admin, Vendor, Customer
π¦ Shipment Lifecycle Management
Full status-transition tracking from CREATED β DELIVERED
π€ AI Support Chatbot
Powered by Spring AI + Groq API β answers questions using live DB data
π‘ Real-Time SSE Sync
All pages auto-refresh across every logged-in session without manual reload
π Live Notifications
Role-specific push notifications with click-through navigation
π§ Email Notifications
Async email alerts to vendor and customer on every status update
ποΈ Audit Trail
Every status change is recorded with timestamp, location, and actor
π‘οΈ Shipment Authorization
Users can only access shipments they own β 403 on unauthorized access
π Admin Analytics
Live charts showing delivery rates, vendor performance, monthly trends
The chatbot is not a generic assistant. Every time a user sends a message, the backend:
Fetches live shipment data from the database for that specific user
Builds a context-aware system prompt injecting real tracking numbers, statuses, and locations
Sends it to Groq API (LLaMA 3.3 70B) via Spring AI
Returns a role-specific, data-aware response
User: "Where is my package?"
β
ChatController β ChatService
β
Fetch shipments from DB for this user
β
Build system prompt with live data
β
Groq API (LLaMA 3.3) β generates response
β
"Your shipment LGT-A1B2C3 is currently IN TRANSIT at Surat Hub, Gujarat."
π‘ Real-Time Architecture (SSE)
Admin updates shipment status
β
ShipmentService.updateStatus()
β
NotificationService.sendToUser(customerId) β Customer gets notified
NotificationService.sendToUser(vendorId) β Vendor gets notified
NotificationService.sendToAll() β Admins get notified
β
Server-Sent Events push to all open browser tabs
β
React NotifContext receives event
β
All pages auto-refresh + bell icon updates instantly
β If you found this project useful, please give it a star!
About
LogiTrack is a full-stack web application for managing and tracking shipments in real-time. It provides comprehensive logistics management with user authentication, shipment tracking, and admin analytics.