gear_ai_v1

Quick Start Guide

Get Gear AI CoPilot up and running in 5 minutes!

Prerequisites

Before you begin, ensure you have:

Step 1: Clone the Repository

git clone https://github.com/mmanthe37/gear_ai_v1.git
cd gear_ai_v1

Step 2: Install Dependencies

npm install

This will install all required packages (~2-3 minutes).

Step 3: Set Up Environment Variables

  1. Copy the example environment file:
cp .env.example .env.local
  1. Open .env.local in your editor and add your API keys:

Minimum Required (for basic features):

# Firebase (required for auth)
FIREBASE_API_KEY=your_key_here
FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
FIREBASE_PROJECT_ID=your_project_id

# Supabase (required for database)
SUPABASE_URL=https://your_project.supabase.co
SUPABASE_ANON_KEY=your_anon_key_here

Optional (for advanced features):

# OpenAI (for AI chat - Phase 2)
OPENAI_API_KEY=sk-...

# Stripe (for subscriptions)
STRIPE_PUBLISHABLE_KEY=pk_test_...

Step 4: Set Up Firebase

  1. Go to Firebase Console
  2. Create a new project
  3. Enable Authentication → Email/Password
  4. Get your config from Project Settings → General
  5. Add keys to .env.local

Step 5: Set Up Supabase

  1. Go to Supabase
  2. Create a new project
  3. Go to SQL Editor and run migrations:
    • Copy contents of supabase/migrations/20250101000000_initial_schema.sql
    • Run the query
    • Repeat for 20250101000001_rls_policies.sql
  4. Get API keys from Project Settings → API
  5. Add to .env.local

Step 6: Start Development Server

npm start

You should see a QR code and development options.

Step 7: Run the App

Option A: Web Browser (Easiest)

npm run web

Opens in your default browser at http://localhost:8081

Option B: iOS Simulator (macOS only)

# Press 'i' in the terminal
# Or:
npm run ios

Option C: Android Emulator

# Press 'a' in the terminal
# Or:
npm run android

Option D: Physical Device

  1. Install Expo Go app:
  2. Scan the QR code shown in your terminal

What’s Next?

Explore the App

Add a Vehicle

  1. Tap “Add Vehicle” on the Home screen
  2. Enter a VIN (example: 1HGBH41JXMN109186)
  3. Vehicle details will be auto-populated via NHTSA API

Try the AI Chat (Basic)

  1. Tap on a vehicle card
  2. Tap “Chat with AI”
  3. Ask automotive questions (responses are currently simulated)

Development Tools

Common Issues

“Metro bundler failed to start”

# Clear cache and restart
npx expo start -c

“Cannot connect to Metro”

“Module not found”

# Reinstall dependencies
rm -rf node_modules package-lock.json
npm install

“TypeScript errors”

# Check for type errors
npx tsc --noEmit

Project Structure

gear_ai_v1/
├── app/                    # Expo Router pages
│   ├── (tabs)/            # Tab navigation
│   │   ├── index.tsx      # Home/Garage
│   │   ├── diagnostics.tsx
│   │   ├── maintenance.tsx
│   │   └── manuals.tsx
│   └── chat/              # AI chat screens
├── components/            # Reusable UI components
├── services/              # API integrations
├── types/                 # TypeScript definitions
└── docs/                  # Documentation

Next Steps

  1. Read Documentation:
  2. Contribute:
  3. Deploy:

Need Help?

What’s Working in MVP?

Complete:

🚧 In Progress:

Development Roadmap

See ROADMAP.md for the full feature timeline.


Happy Coding! 🚗🤖

Built with ❤️ using React Native, Expo, and Supabase.