Skip to content

Yash-Chandrani/FleetTrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fleet Management System

A modern fleet management system built with React, TypeScript, and .NET Core 8.

Prerequisites

  • .NET 8 SDK
  • Node.js 18+ and npm
  • Docker and Docker Compose
  • Kubernetes (for production deployment)
  • Azure CLI (for AKS deployment)

Project Structure

.
├── fleet-api/           # .NET Core 8 Web API
├── fleet-ui/           # React + TypeScript Frontend
├── k8s/                # Kubernetes manifests
└── docker-compose.yml  # Development environment

Setup Instructions

  1. Backend Setup:

    cd fleet-api
    dotnet restore
    dotnet run
  2. Frontend Setup:

    cd fleet-ui
    npm install
    npm start
  3. Docker Development:

    docker-compose up

API Endpoints

  • GET /api/vehicles - List all vehicles
  • GET /api/routes - List all routes

Real-time Updates

The system uses SignalR WebSocket hub for real-time vehicle position updates. The frontend connects to the SignalR hub at /vehicleHub to receive live location updates.

Map Component

The frontend includes a Leaflet map component that displays:

  • Vehicle locations
  • Real-time position updates
  • Route visualization

Development

  • Backend runs on port 5000
  • Frontend runs on port 3000
  • SignalR hub is available at ws://localhost:5000/vehicleHub

Production Deployment

See k8s/README-k8s.md for Kubernetes deployment instructions.

About

A modern fleet management system built with React, TypeScript, and .NET Core 8.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published