-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·42 lines (30 loc) · 959 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·42 lines (30 loc) · 959 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
40
41
#!/bin/bash
echo "🏗️ Setting up Cursor for Architecture MVP..."
# Backend setup
echo "\n📦 Setting up backend..."
cd backend
if [ ! -d "venv" ]; then
echo "Creating Python virtual environment..."
python3 -m venv venv
fi
echo "Activating virtual environment..."
source venv/bin/activate
echo "Installing Python dependencies..."
pip install -r requirements.txt
if [ ! -f ".env" ]; then
echo "Creating .env file from example..."
cp env.example .env
echo "⚠️ Please edit backend/.env and add your OPENAI_API_KEY"
fi
cd ..
# Frontend setup
echo "\n📦 Setting up frontend..."
cd frontend
echo "Installing npm dependencies..."
npm install
cd ..
echo "\n✅ Setup complete!"
echo "\nTo run the application:"
echo " 1. Backend: cd backend && source venv/bin/activate && uvicorn main:app --reload"
echo " 2. Frontend: cd frontend && npm run dev"
echo "\n⚠️ Don't forget to add your OPENAI_API_KEY to backend/.env"