# ChaseDaddy.ai Quick Setup Commands # Copy and paste these commands to get started quickly # ============================================ # VERIFY ENVIRONMENT # ============================================ # Check if Supabase is running npx supabase status # If not running, start Supabase npx supabase start # Check Docker Desktop is running docker ps # ============================================ # INSTALL DEPENDENCIES # ============================================ # Install client dependencies cd client npm install # Install server dependencies cd ../server npm install # ============================================ # START DEVELOPMENT SERVERS # ============================================ # Terminal 1 - Start Backend API Server cd server npm run dev # Terminal 2 - Start Next.js Frontend cd client npm run dev # ============================================ # VERIFY EVERYTHING WORKS # ============================================ # Open these URLs in your browser: # Frontend: http://localhost:3000 # Dashboard: http://localhost:3000/dashboard # API Health: http://localhost:4000/api/health # Database Test: http://localhost:4000/api/test-db # Supabase Studio: http://127.0.0.1:54423 # ============================================ # COMMON COMMANDS # ============================================ # Restart Supabase npx supabase stop && npx supabase start # Check Supabase logs npx supabase logs # Reset Supabase (WARNING: Deletes all data) npx supabase db reset # Run database migrations npx supabase migration up # ============================================ # DEVELOPMENT WORKFLOW # ============================================ # Build client for production cd client && npm run build # Build server for production cd server && npm run build # Run client in production mode cd client && npm start # Run server in production mode cd server && npm start # ============================================ # DATABASE MANAGEMENT # ============================================ # Apply database schema (from Supabase Studio) # 1. Open http://127.0.0.1:54423 # 2. Go to SQL Editor # 3. Copy content from 03_DATABASE_SCHEMA.sql # 4. Paste and Run # Create new migration npx supabase migration new migration_name # ============================================ # TROUBLESHOOTING # ============================================ # Clear Next.js cache cd client && rm -rf .next # Clear node_modules and reinstall cd client && rm -rf node_modules && npm install cd server && rm -rf node_modules && npm install # Check what's using a port (Windows) netstat -ano | findstr :3000 netstat -ano | findstr :4000 # Kill process by PID (Windows) taskkill /PID /F # Check what's using a port (Mac/Linux) lsof -i :3000 lsof -i :4000 # Kill process by port (Mac/Linux) kill -9 $(lsof -t -i:3000) kill -9 $(lsof -t -i:4000) # ============================================ # GIT COMMANDS # ============================================ # Check status git status # Add all changes git add . # Commit changes git commit -m "Your commit message" # Push to remote git push # Pull latest changes git pull # Create new branch git checkout -b feature/your-feature-name # Switch branches git checkout branch-name # ============================================ # ENVIRONMENT VARIABLES # ============================================ # Client .env.local location client/.env.local # Server .env location server/.env # Required client environment variables: # NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54421 # NEXT_PUBLIC_SUPABASE_ANON_KEY=sb_publishable_ACJWlzQHlZjBrEguHvfOxg_3BJgxAaH # Required server environment variables: # PORT=4000 # SUPABASE_URL=http://127.0.0.1:54421 # SUPABASE_SERVICE_KEY=sb_secret_N7UND0UgjKTVK-Uodkm0Hg_xSvEMPvz # OPENAI_API_KEY=your_key_here # GOHIGHLEVEL_API_KEY=your_key_here # GOHIGHLEVEL_LOCATION_ID=your_location_id_here # ============================================ # QUICK REFERENCE # ============================================ # Project Structure: # client/ - Next.js 15 frontend # server/ - Node.js + Express API # supabase/ - Supabase configuration # *.md files - Documentation # Key Technologies: # - Next.js 15 with App Router # - TypeScript # - TailwindCSS # - Supabase (PostgreSQL) # - Framer Motion # - Lucide Icons # Brand Colors: # chase-blue: #106ACB # chase-green: #009956 # ============================================ # DEPLOYMENT # ============================================ # Deploy frontend to Vercel cd client vercel --prod # Build for production npm run build # Test production build locally npm run build && npm start