A comprehensive driver management and tracking system built with Flutter mobile application and PHP backend API.
Vero is a full-stack application designed for managing drivers and tracking their activities. The system consists of:
- Flutter Mobile App: Cross-platform mobile application with location tracking and mapping capabilities
- PHP REST API: Backend server providing authentication, driver management, and data persistence
vero/
├── flutter/ # Flutter mobile application
│ ├── lib/
│ │ ├── communication/ # API communication modules
│ │ ├── enums/ # Application enumerations
│ │ ├── handlers/ # Event and data handlers
│ │ ├── helpers/ # Utility functions
│ │ ├── widgets/ # UI components
│ │ └── main.dart # Application entry point
│ └── pubspec.yaml # Flutter dependencies
├── api/ # PHP REST API backend
│ ├── auth_functions.php
│ ├── config.php
│ ├── create_db.php
│ ├── functions.php
│ └── index.php # Main API endpoint
└── LICENSE # MIT License
- User authentication (login/register)
- Real-time location tracking
- Interactive maps with location markers
- Custom navigation interface
- Cross-platform support (iOS, Android, Web, Desktop)
- JWT token-based authentication
- User registration and login
- Driver management (CRUD operations)
- Role-based access control (admin/user levels)
- RESTful API endpoints
- flutter: Flutter SDK
- http: HTTP requests for API communication
- location: Location services
- flutter_map: Interactive map widget
- flutter_map_location_marker: Location markers for maps
- latlong2: Latitude/longitude calculations
- geocoding: Address geocoding services
- custom_navigation_bar: Custom navigation components
- PHP: Server-side scripting
- PDO: Database abstraction layer
- MySQL/PostgreSQL: Database (configurable)
- Flutter SDK (3.4.1 or higher)
- PHP 7.4+
- MySQL or PostgreSQL database
- Web server (Apache/Nginx)
- Configure database connection in
api/config.php - Run
api/create_db.phpto initialize database tables - Deploy API files to your web server
- Navigate to the
flutter/directory - Install dependencies:
flutter pub get
- Configure API endpoints in the communication modules
- Run the application:
flutter run
POST /api/?action=register- User registrationPOST /api/?action=login- User authenticationGET /api/?action=get_all_drivers- Retrieve all drivers (admin only)POST /api/?action=add_driver- Add new driver (admin only)
The API uses Bearer token authentication. Include the token in the Authorization header:
Authorization: Bearer <your-token>
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) 2024 Orestis Lefkadtis
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request