Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Real-Time Dispatch System πŸš—

A full-stack, real-time logistics and dispatch platform modeling real-world workflows (Client, Driver, Dispatcher) using WebSockets, state machine logic, and interactive spatial mapping.

πŸ—οΈ System Architecture & Scope

  1. Client Interface: Request rides, set pickup/drop-off coordinates, specify accessibility requirements, and track driver arrival.
  2. Driver View (Mobile Web/PWA): Receive ride requests, accept/reject assignments, and push real-time status updates using a strict state machine (Assigned -> En Route -> Arrived -> Completed).
  3. Dispatcher Dashboard: Monitor all active drivers, current ride statuses, and system metrics on a live Mapbox interface via persistent WebSockets.

πŸ› οΈ Tech Stack

  • Frontend: React, TailwindCSS, Mapbox GL JS
  • Backend: Node.js (Express), Socket.io
  • Database: PostgreSQL / Supabase (PostGIS for spatial queries)
  • Testing: Jest, Cypress / Playwright

πŸš€ Getting Started

Prerequisites

  • Node.js (v18+)
  • npm or yarn
  • PostgreSQL / Supabase account
  • Mapbox API Token

Installation

  1. Clone the repository:
git clone https://github.com/BYULabs/realtime-dispatch-system.git)
cd realtime-dispatch-system
  1. Install dependencies for server and client:
cd server && npm install
cd ../client && npm install
  1. Set up environment variables (.env):
PORT=5000
DATABASE_URL=your_postgres_url
MAPBOX_ACCESS_TOKEN=your_mapbox_token
  1. Run the development server:
# In /server
npm run dev
# In /client
npm run dev

🀝 Contributing & Issue Board

We welcome contributions! Check out the Issues tab to find open tasks categorized by layer (frontend, backend, database, good first issue). Comment on an issue to get assigned.

About

Real-time 3-role dispatch platform (Client, Driver, Dispatcher) built with React, Node.js, WebSockets, and Mapbox GL JS.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors