-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·41 lines (33 loc) · 1.12 KB
/
Copy pathstart.sh
File metadata and controls
executable file
·41 lines (33 loc) · 1.12 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
#!/bin/bash
# Startup Analyst Platform - Development Server
echo "🚀 Starting Startup Analyst Platform..."
# Check if .env file exists
if [ ! -f .env ]; then
echo "⚠️ .env file not found. Creating from .env.example..."
cp .env.example .env
echo "📝 Please edit .env file with your Google API key"
echo " export GOOGLE_API_KEY='your-api-key-here'"
fi
# Load environment variables
export $(cat .env | grep -v '^#' | xargs)
# Check if Google API key is set
if [ -z "$GOOGLE_API_KEY" ]; then
echo "❌ GOOGLE_API_KEY not set in .env file"
echo " Please add your Google API key to the .env file"
exit 1
fi
# Install Python dependencies
echo "📦 Installing Python dependencies..."
pip3 install -r requirements.txt
# Build React frontend
echo "🏗️ Building React frontend..."
cd frontend
npm install
npm run build
cd ..
# Start the FastAPI server
echo "🌟 Starting FastAPI server..."
echo " Frontend: http://localhost:8080"
echo " API Docs: http://localhost:8080/docs"
echo " Health: http://localhost:8080/api/health"
python3 -m uvicorn backend.main:app --host 0.0.0.0 --port 8080 --reload