-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
Β·44 lines (35 loc) Β· 1.03 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
Β·44 lines (35 loc) Β· 1.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
#!/bin/bash
echo "π Setting up Startup Analyst Platform..."
# Check if Python 3 is installed
if ! command -v python3 &> /dev/null; then
echo "β Python 3 is not installed. Please install Python 3.8+"
exit 1
fi
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "β Node.js is not installed. Please install Node.js 16+"
exit 1
fi
echo "β
Prerequisites check passed"
# Setup Python backend
echo "π¦ Installing Python dependencies..."
pip3 install -r requirements.txt
# Setup React frontend
echo "π¦ Installing Node.js dependencies..."
cd frontend
npm install
cd ..
# Create necessary directories
echo "π Creating directories..."
mkdir -p uploads
mkdir -p logs
# Set permissions
chmod +x simple_demo_backend.py
echo "β
Setup complete!"
echo ""
echo "π To start the application:"
echo "1. Backend: python3 simple_demo_backend.py"
echo "2. Frontend: cd frontend && npm start"
echo ""
echo "π± Access the app at: http://localhost:3000"
echo "π API docs at: http://localhost:8080/docs"