-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·39 lines (30 loc) · 1020 Bytes
/
dev.sh
File metadata and controls
executable file
·39 lines (30 loc) · 1020 Bytes
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
#!/bin/bash
# Quick development script for CodeReview API
set -e
echo "🚀 Starting CodeReview API Development Server..."
# Check if Deno is installed
if ! command -v deno &> /dev/null; then
echo "❌ Deno is not installed. Please install Deno first:"
echo " curl -fsSL https://deno.land/install.sh | sh"
exit 1
fi
# Check if codereview.sh exists
if [ ! -f "./codereview.sh" ]; then
echo "❌ codereview.sh not found in current directory"
exit 1
fi
# Make sure codereview.sh is executable
chmod +x ./codereview.sh
# Load environment variables if .env exists
if [ -f ".env" ]; then
echo "📄 Loading environment variables from .env"
export $(cat .env | grep -v '^#' | xargs)
fi
# Start the development server
echo "🌟 Server will be available at http://localhost:${PORT:-8787}"
echo "📚 API documentation at http://localhost:${PORT:-8787}/"
echo "🔍 Health check at http://localhost:${PORT:-8787}/health"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
deno task dev