Skip to content

beingfaisal/Trucking-ELD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trucking ELD

Effortless Route Planning for Drivers

A simple web application that calculates driving routes, schedules mandatory stops (fuel, breaks, rest), and displays everything on an interactive map to help drivers stay compliant and efficient.

Features

  • Route Calculation: Uses OSRM to compute optimal paths between waypoints.
  • Automated Stops: Schedules fuel stops, 30‑min breaks, and off‑duty/rest periods based on driving rules.
  • Interactive Map: Visualize the route and events with Google Maps.
  • Toggle Events: Show/hide different event types for clarity.

Getting Started

Backend

  1. Navigate to the backend/ directory.

  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate    # Windows: venv\\Scripts\\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run migrations and start the server:

    python manage.py migrate
    python manage.py runserver

Frontend

  1. Navigate to the frontend/ directory.

  2. Install npm packages:

    npm install
  3. Create a .env.local file with:

    REACT_APP_BACKEND_URL=http://localhost:8000
    REACT_APP_GOOGLE_MAPS_API_KEY=your_google_maps_key
  4. Start the development server:

    npm start

Open http://localhost:3000 to view the app.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published