-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
74 lines (65 loc) · 2.03 KB
/
Copy pathsetup.sh
File metadata and controls
74 lines (65 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
# Campus Navigator - Quick Setup Script
# This script guides you through initial configuration
echo "=========================================="
echo "Campus Navigator - Configuration Setup"
echo "=========================================="
echo ""
# Check if .env exists
if [ ! -f .env ]; then
echo "Creating .env file from template..."
cp .env.example .env
echo "✓ Created .env file"
else
echo "✓ .env file already exists"
fi
echo ""
echo "=========================================="
echo "Required Configuration"
echo "=========================================="
echo ""
echo "1. Google Maps API Key"
echo " - Visit: https://console.cloud.google.com/"
echo " - Create API Key with Maps JavaScript API enabled"
echo " - Add to .env: REACT_APP_GOOGLE_MAPS_API_KEY=..."
echo ""
echo "2. OpenRouteService API Key (for production routing)"
echo " - Visit: https://openrouteservice.org/"
echo " - Sign up and create API key"
echo " - Add to .env: REACT_APP_ORS_API_KEY=..."
echo ""
echo "=========================================="
echo "Services to Start"
echo "=========================================="
echo ""
echo "Open 2 terminals and run:"
echo ""
echo "Terminal 1 - Python Backend:"
echo " python main.py"
echo ""
echo "Terminal 2 - React Frontend:"
echo " npm start"
echo ""
echo "=========================================="
echo "Edit .env File"
echo "=========================================="
echo ""
echo "Open .env in your editor and add your API keys:"
echo ""
echo " REACT_APP_GOOGLE_MAPS_API_KEY=YOUR_KEY_HERE"
echo " REACT_APP_ORS_API_KEY=YOUR_KEY_HERE"
echo ""
echo "=========================================="
echo "Testing"
echo "=========================================="
echo ""
echo "1. Open http://localhost:3000"
echo "2. Select a campus location"
echo "3. Click AR Navigation to test GPS"
echo "4. Check browser console for warnings"
echo ""
echo "For detailed setup guide, see:"
echo " - WEBAR_API_CONFIGURATION.md"
echo " - WEBAR_DEVELOPER_SETUP.md"
echo ""
echo "✓ Setup script complete!"