Quickstart Guide
Get the Viax platform running on your local machine or connect to the production backend in just a few steps.Prerequisites
Before you begin, ensure you have the following installed:Flutter SDK
Version 3.35.3 or higher
Dart SDK
Version 3.0 or higher
Git
For cloning the repository
Code Editor
VS Code or Android Studio recommended
Choose Your Setup
You have two options to get started:- Production Backend (Fastest)
- Local Development
Connect directly to the production VPS - perfect for testing without local setup.
Option A: Using Production Backend (Recommended for Testing)
This is the fastest way to get started. The backend is already deployed and running.Verify Configuration
The app is configured to use production by default. Check
lib/src/core/config/app_config.dart:Option B: Local Development Setup
For development and customization, set up the complete stack locally.Install Laragon
Download and install Laragon from laragon.orgLaragon includes:
- Apache web server
- MySQL database
- PHP 8.3+
- phpMyAdmin
Create Database
Open Laragon and start all services, then:
- Click Database button (opens phpMyAdmin)
- Create new database named
viax - Set charset to
utf8mb4_unicode_ci - Import the SQL file:
basededatos.sql
Configure Flutter for Local
Update the base URL for your environment:
Find your IP with
ipconfig (Windows) or ifconfig (Mac/Linux)For complete local setup instructions, see Local Development Setup
Verify Installation
1. Check Flutter Doctor
- Android SDK not found → Install Android Studio
- iOS toolchain (Mac only) → Install Xcode
2. Test Backend Connectivity
The app automatically tests the backend connection on launch. Watch for: ✅ Success indicators:- Login screen appears
- No connection errors
- Registration flow works
- “Could not connect to server” error
- Timeout messages
- Failed API calls
3. Test Key Features
- Authentication
- Maps
- Driver Features
- Tap “Crear cuenta” (Create account)
- Fill in user details
- Verify email with 6-digit code
- Login with credentials
Environment Configuration
Viax supports multiple environments through Dart defines:localhost,10.0.2.2,192.168.*→ Development- Contains
staging→ Staging - Everything else → Production
Building for Production
Once you’ve tested the app:Troubleshooting
Connection Refused / Timeout
Connection Refused / Timeout
For Emulator:
- Use
10.0.2.2instead oflocalhost - Verify backend is running:
http://localhost/viax/backend/health.php
- Use your computer’s local IP (e.g.,
192.168.1.100) - Ensure phone and computer are on the same WiFi network
- Check firewall settings
Database Connection Failed
Database Connection Failed
- Verify Laragon MySQL is running (green icon)
- Check database credentials in
backend/config/database.php:- Host:
localhost - Username:
root - Password:
root(default Laragon) - Database:
viax
- Host:
- Ensure database
viaxexists in phpMyAdmin
Maps Not Loading
Maps Not Loading
- Check internet connection (maps require online access)
- Verify Mapbox API key in env configuration
- Check browser console for CORS errors
- Ensure GPS permissions are granted
Email Verification Not Working
Email Verification Not Working
- Production backend uses configured Gmail SMTP
- For local setup, configure PHPMailer in backend
- Check spam folder for verification emails
- Verify email service credentials in backend config
Next Steps
Explore Features
Discover all platform capabilities
Architecture
Understand the system design
Environment Setup
Configure for different environments
Deploy
Deploy to production
Congratulations! You now have Viax running. Start exploring the platform features and customizing for your needs.