-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·65 lines (54 loc) · 1.46 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·65 lines (54 loc) · 1.46 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
#!/bin/bash
echo "================================================"
echo "No Cap Your Honor - Quick Start"
echo "================================================"
echo ""
# Check if .env exists
if [ ! -f "backend/.env" ]; then
echo "⚠️ No .env file found. Creating from template..."
cp backend/.env.example backend/.env
echo "✅ Created backend/.env"
echo "⚠️ Please edit backend/.env and add your API keys before continuing!"
echo ""
exit 1
fi
echo "📦 Setting up backend..."
cd backend
# Check if venv exists
if [ ! -d "venv" ]; then
echo "Creating Python virtual environment..."
python3 -m venv venv
fi
# Activate venv
source venv/bin/activate
# Install dependencies
echo "Installing Python dependencies..."
pip install -q -r requirements.txt
echo "✅ Backend setup complete!"
echo ""
# Setup frontend
echo "📦 Setting up frontend..."
cd ../frontend
if [ ! -d "node_modules" ]; then
echo "Installing Node dependencies..."
npm install
fi
echo "✅ Frontend setup complete!"
echo ""
echo "================================================"
echo "🚀 Ready to start!"
echo "================================================"
echo ""
echo "To run the application:"
echo ""
echo "Terminal 1 (Backend):"
echo " cd backend"
echo " source venv/bin/activate"
echo " python main.py"
echo ""
echo "Terminal 2 (Frontend):"
echo " cd frontend"
echo " npm start"
echo ""
echo "Then open http://localhost:3000 in your browser"
echo ""