# School Bus Tracking System Setup

## Backend Setup
1. Copy the `bustrack` folder to your `xampp/htdocs/` directory.
2. Open phpMyAdmin and create a database named `bustrack`.
3. Import `database.sql` into the `bustrack` database.
4. Open your browser and go to `http://localhost/bustrack/seed.php` to insert test data.
5. Admin Panel is at `http://localhost/bustrack/admin/login.php`.
   - **User**: `admin`
   - **Pass**: `admin123`

## Driver App Setup (B4A)
1. Open B4A IDE.
2. Create a new project and add the files from `bustrack/driver_app/` (Main, Starter, TrackingService, APIModule).
3. Update the `ServerURL` in `APIModule.bas` to your computer's local IP address (e.g., `http://192.168.1.5/bustrack/api`).
4. Add the following libraries in B4A:
   - `HTTPUtils2` (OkHttpUtils2)
   - `JSON`
   - `GPS`
   - `Phone`
   - `Reflection`
5. Compile and Run (F5).
   - **Test Driver Phone**: `9841000000`
   - **Test Driver Pass**: `driver123`

## Features
- Real-time GPS tracking with a premium dashboard.
- Background service for the driver app (foreground service).
- Manage buses, drivers, and students.
- Leaflet.js map integration.
