T420 Development Guide
Table of Contents
Prerequisites
Quick Start (5 Minutes)
1. Clone & Install
2. Create .env File
3. Start Development Server
Environment Configuration
Supabase Setup (Required)
Option 1: Use Existing Project
Option 2: Create New Project
Product Configuration
Database Setup
Apply Schema and RLS Policies
Option 1: Via Supabase Dashboard (Easiest)
Option 2: Via psql Command Line
Option 3: Via Supabase CLI
Verify Database Setup
WhatsApp Integration
Step 1: Sign Up for Twilio (10 minutes)
Step 2: Get Account Credentials
Step 3: Set Up WhatsApp Sandbox
Step 4: Add to .env
Testing WhatsApp (via curl)
Email Configuration
Step 1: Sign Up for SendGrid (10 minutes)
Step 2: Create API Key
Step 3: Verify Sender Email
Step 4: Add to .env
Test Email
Running the Applications
FleetOS (Zero-Signup Flow)
Robo-Hub (B2B Marketplace)
Robo-Dapp (Separate Next.js App)
Project Structure
Testing
Manual Testing
Database Verification
API Testing
Troubleshooting
Common Issues
1. "npm install" fails
2. Supabase connection error
3. Email not sending
4. WhatsApp not working
5. Magic link expired
6. Port 3000 already in use
7. Vite build errors
Production Deployment
Pre-Deployment Checklist
Build for Production
Deploy to Vercel (Recommended)
Deploy to Netlify
Environment Variables for Production
Production Database Setup
Post-Deployment
Additional Resources
Last updated
Was this helpful?