Initial commit - Current state of vip-coordinator
This commit is contained in:
313
populate-test-data.sh
Normal file
313
populate-test-data.sh
Normal file
@@ -0,0 +1,313 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to populate VIP Coordinator with test data
|
||||
# All VIPs flying into Denver International Airport (DEN)
|
||||
|
||||
API_BASE="http://localhost:3000/api"
|
||||
|
||||
echo "🚀 Starting to populate test data..."
|
||||
echo ""
|
||||
|
||||
# Add VIPs
|
||||
echo "Adding VIPs..."
|
||||
|
||||
# VIP 1
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Sarah Johnson",
|
||||
"organization": "Tech Innovations Inc",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "UA1234", "flightDate": "2025-06-26", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "CEO - Requires executive transport"
|
||||
}' && echo " ✅ Added Sarah Johnson"
|
||||
|
||||
# VIP 2
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Michael Chen",
|
||||
"organization": "Global Finance Corp",
|
||||
"transportMode": "flight",
|
||||
"flights": [
|
||||
{"flightNumber": "AA2547", "flightDate": "2025-06-26", "segment": 1},
|
||||
{"flightNumber": "AA789", "flightDate": "2025-06-26", "segment": 2}
|
||||
],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Has connecting flight through Dallas"
|
||||
}' && echo " ✅ Added Michael Chen"
|
||||
|
||||
# VIP 3
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Emily Rodriguez",
|
||||
"organization": "Healthcare Solutions",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "DL456", "flightDate": "2025-06-27", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": false,
|
||||
"notes": "Will have rental car for venue transport"
|
||||
}' && echo " ✅ Added Emily Rodriguez"
|
||||
|
||||
# VIP 4 (Self-driving)
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "David Thompson",
|
||||
"organization": "Energy Dynamics",
|
||||
"transportMode": "self-driving",
|
||||
"expectedArrival": "2025-06-26T14:00:00",
|
||||
"needsAirportPickup": false,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Driving from Colorado Springs"
|
||||
}' && echo " ✅ Added David Thompson"
|
||||
|
||||
# VIP 5
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Lisa Wang",
|
||||
"organization": "AI Research Lab",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "UA852", "flightDate": "2025-06-26", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Keynote speaker - VIP treatment required"
|
||||
}' && echo " ✅ Added Lisa Wang"
|
||||
|
||||
# VIP 6
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Robert Martinez",
|
||||
"organization": "Venture Capital Partners",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "SW1122", "flightDate": "2025-06-27", "segment": 1}],
|
||||
"needsAirportPickup": false,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Taking Uber from airport"
|
||||
}' && echo " ✅ Added Robert Martinez"
|
||||
|
||||
# VIP 7
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Jennifer Adams",
|
||||
"organization": "Media Networks",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "F9567", "flightDate": "2025-06-26", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Frontier flight from Las Vegas"
|
||||
}' && echo " ✅ Added Jennifer Adams"
|
||||
|
||||
# VIP 8
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "James Wilson",
|
||||
"organization": "Automotive Industries",
|
||||
"transportMode": "flight",
|
||||
"flights": [
|
||||
{"flightNumber": "UA1745", "flightDate": "2025-06-27", "segment": 1},
|
||||
{"flightNumber": "UA234", "flightDate": "2025-06-27", "segment": 2}
|
||||
],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Connecting through Chicago"
|
||||
}' && echo " ✅ Added James Wilson"
|
||||
|
||||
# VIP 9 (Self-driving)
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Patricia Brown",
|
||||
"organization": "Education Foundation",
|
||||
"transportMode": "self-driving",
|
||||
"expectedArrival": "2025-06-26T10:00:00",
|
||||
"needsAirportPickup": false,
|
||||
"needsVenueTransport": false,
|
||||
"notes": "Local - knows the area well"
|
||||
}' && echo " ✅ Added Patricia Brown"
|
||||
|
||||
# VIP 10
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Christopher Lee",
|
||||
"organization": "Biotech Ventures",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "AA1893", "flightDate": "2025-06-26", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "First time in Denver"
|
||||
}' && echo " ✅ Added Christopher Lee"
|
||||
|
||||
# VIP 11
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Amanda Taylor",
|
||||
"organization": "Renewable Energy Co",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "DL2341", "flightDate": "2025-06-27", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Panel moderator"
|
||||
}' && echo " ✅ Added Amanda Taylor"
|
||||
|
||||
# VIP 12
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Daniel Garcia",
|
||||
"organization": "Software Solutions",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "UA5678", "flightDate": "2025-06-26", "segment": 1}],
|
||||
"needsAirportPickup": false,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Has colleague picking up from airport"
|
||||
}' && echo " ✅ Added Daniel Garcia"
|
||||
|
||||
# VIP 13
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Michelle Anderson",
|
||||
"organization": "Investment Group",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "SW435", "flightDate": "2025-06-27", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Prefers window seat in transport"
|
||||
}' && echo " ✅ Added Michelle Anderson"
|
||||
|
||||
# VIP 14
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Kevin Patel",
|
||||
"organization": "Tech Startups Inc",
|
||||
"transportMode": "flight",
|
||||
"flights": [
|
||||
{"flightNumber": "F9234", "flightDate": "2025-06-26", "segment": 1},
|
||||
{"flightNumber": "F9789", "flightDate": "2025-06-26", "segment": 2}
|
||||
],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Two Frontier flights with connection"
|
||||
}' && echo " ✅ Added Kevin Patel"
|
||||
|
||||
# VIP 15 (Self-driving)
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Rachel Green",
|
||||
"organization": "Marketing Experts",
|
||||
"transportMode": "self-driving",
|
||||
"expectedArrival": "2025-06-27T08:00:00",
|
||||
"needsAirportPickup": false,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Driving from Wyoming"
|
||||
}' && echo " ✅ Added Rachel Green"
|
||||
|
||||
# VIP 16 (3 connections!)
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Steven Kim",
|
||||
"organization": "International Trade",
|
||||
"transportMode": "flight",
|
||||
"flights": [
|
||||
{"flightNumber": "UA789", "flightDate": "2025-06-26", "segment": 1},
|
||||
{"flightNumber": "UA456", "flightDate": "2025-06-26", "segment": 2},
|
||||
{"flightNumber": "UA123", "flightDate": "2025-06-26", "segment": 3}
|
||||
],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "International flight with 2 connections"
|
||||
}' && echo " ✅ Added Steven Kim"
|
||||
|
||||
# VIP 17
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Nancy White",
|
||||
"organization": "Legal Associates",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "AA567", "flightDate": "2025-06-27", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": false,
|
||||
"notes": "Staying at airport hotel"
|
||||
}' && echo " ✅ Added Nancy White"
|
||||
|
||||
# VIP 18
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Brian Davis",
|
||||
"organization": "Construction Corp",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "DL789", "flightDate": "2025-06-26", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Bringing presentation materials"
|
||||
}' && echo " ✅ Added Brian Davis"
|
||||
|
||||
# VIP 19
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Jessica Miller",
|
||||
"organization": "Fashion Industries",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "UA2468", "flightDate": "2025-06-27", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Requires luggage assistance"
|
||||
}' && echo " ✅ Added Jessica Miller"
|
||||
|
||||
# VIP 20
|
||||
curl -X POST $API_BASE/vips -H "Content-Type: application/json" -d '{
|
||||
"name": "Thomas Johnson",
|
||||
"organization": "Sports Management",
|
||||
"transportMode": "flight",
|
||||
"flights": [{"flightNumber": "SW789", "flightDate": "2025-06-26", "segment": 1}],
|
||||
"needsAirportPickup": true,
|
||||
"needsVenueTransport": true,
|
||||
"notes": "Former athlete - may be recognized"
|
||||
}' && echo " ✅ Added Thomas Johnson"
|
||||
|
||||
echo ""
|
||||
echo "Adding Drivers..."
|
||||
|
||||
# Driver 1
|
||||
curl -X POST $API_BASE/drivers -H "Content-Type: application/json" -d '{
|
||||
"name": "Carlos Rodriguez",
|
||||
"phone": "(303) 555-0101",
|
||||
"currentLocation": {"lat": 39.8561, "lng": -104.6737}
|
||||
}' && echo " ✅ Added Carlos Rodriguez"
|
||||
|
||||
# Driver 2
|
||||
curl -X POST $API_BASE/drivers -H "Content-Type: application/json" -d '{
|
||||
"name": "Maria Gonzalez",
|
||||
"phone": "(303) 555-0102",
|
||||
"currentLocation": {"lat": 39.7392, "lng": -104.9903}
|
||||
}' && echo " ✅ Added Maria Gonzalez"
|
||||
|
||||
# Driver 3
|
||||
curl -X POST $API_BASE/drivers -H "Content-Type: application/json" -d '{
|
||||
"name": "John Smith",
|
||||
"phone": "(303) 555-0103",
|
||||
"currentLocation": {"lat": 39.7817, "lng": -104.8883}
|
||||
}' && echo " ✅ Added John Smith"
|
||||
|
||||
# Driver 4
|
||||
curl -X POST $API_BASE/drivers -H "Content-Type: application/json" -d '{
|
||||
"name": "Ashley Williams",
|
||||
"phone": "(303) 555-0104",
|
||||
"currentLocation": {"lat": 39.7294, "lng": -104.8319}
|
||||
}' && echo " ✅ Added Ashley Williams"
|
||||
|
||||
# Driver 5
|
||||
curl -X POST $API_BASE/drivers -H "Content-Type: application/json" -d '{
|
||||
"name": "Marcus Thompson",
|
||||
"phone": "(303) 555-0105",
|
||||
"currentLocation": {"lat": 39.7555, "lng": -105.0022}
|
||||
}' && echo " ✅ Added Marcus Thompson"
|
||||
|
||||
# Driver 6
|
||||
curl -X POST $API_BASE/drivers -H "Content-Type: application/json" -d '{
|
||||
"name": "Linda Chen",
|
||||
"phone": "(303) 555-0106",
|
||||
"currentLocation": {"lat": 39.6777, "lng": -104.9619}
|
||||
}' && echo " ✅ Added Linda Chen"
|
||||
|
||||
# Driver 7
|
||||
curl -X POST $API_BASE/drivers -H "Content-Type: application/json" -d '{
|
||||
"name": "Robert Jackson",
|
||||
"phone": "(303) 555-0107",
|
||||
"currentLocation": {"lat": 39.8028, "lng": -105.0875}
|
||||
}' && echo " ✅ Added Robert Jackson"
|
||||
|
||||
# Driver 8
|
||||
curl -X POST $API_BASE/drivers -H "Content-Type: application/json" -d '{
|
||||
"name": "Sofia Martinez",
|
||||
"phone": "(303) 555-0108",
|
||||
"currentLocation": {"lat": 39.7047, "lng": -105.0814}
|
||||
}' && echo " ✅ Added Sofia Martinez"
|
||||
|
||||
echo ""
|
||||
echo "✅ Test data population complete!"
|
||||
echo ""
|
||||
echo "You can now:"
|
||||
echo "1. View all VIPs at http://localhost:5173/vips"
|
||||
echo "2. Manage drivers at http://localhost:5173/drivers"
|
||||
echo "3. Create schedules for the VIPs"
|
||||
echo "4. Test flight tracking and validation"
|
||||
Reference in New Issue
Block a user