-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
Β·61 lines (49 loc) Β· 1.38 KB
/
setup.sh
File metadata and controls
executable file
Β·61 lines (49 loc) Β· 1.38 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
#!/bin/bash
# InsightWorkspace MVP - Quick Start Script
set -e
echo "π InsightWorkspace MVP Setup"
echo "================================"
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "β Node.js is not installed. Please install Node.js 18+ first."
exit 1
fi
echo "β
Node.js version: $(node -v)"
# Install server dependencies
echo ""
echo "π¦ Installing server dependencies..."
cd server
npm install
# Setup environment
if [ ! -f .env ]; then
echo "π Creating .env file..."
cp .env.example .env
echo "β οΈ Please edit server/.env and add your API keys:"
echo " - OPENAI_API_KEY"
echo " - ANTHROPIC_API_KEY"
fi
# Generate Prisma client
echo ""
echo "ποΈ Setting up database..."
npx prisma generate
npx prisma migrate dev --name init
cd ..
# Install web dependencies
echo ""
echo "π¦ Installing web dependencies..."
cd web
npm install
cd ..
echo ""
echo "β
Setup complete!"
echo ""
echo "Next steps:"
echo "1. Edit server/.env and add your LLM API keys"
echo "2. Run 'npm run dev' in server/ directory (Terminal 1)"
echo "3. Run 'npm run dev' in web/ directory (Terminal 2)"
echo "4. Open http://localhost:5173"
echo ""
echo "For production build:"
echo "1. Run 'npm run build:deploy' in web/ directory"
echo "2. Run 'npm run build && npm run start:prod' in server/ directory"
echo "3. Open http://localhost:3000"