-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·38 lines (30 loc) · 883 Bytes
/
dev.sh
File metadata and controls
executable file
·38 lines (30 loc) · 883 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
#!/bin/bash
# Development script for Study Notebook Desktop App
set -e
echo "🚀 Study Notebook - Development Mode"
echo "======================================"
echo ""
# Check if dependencies are installed
if [ ! -d "node_modules" ]; then
echo "📦 Installing root dependencies..."
npm install
fi
if [ ! -d "backend/node_modules" ]; then
echo "📦 Installing backend dependencies..."
cd backend && npm install && cd ..
fi
if [ ! -d "frontend/node_modules" ]; then
echo "📦 Installing frontend dependencies..."
cd frontend && npm install && cd ..
fi
echo "✅ Dependencies installed"
echo ""
echo "Starting development servers..."
echo " Backend: http://localhost:3001"
echo " Frontend: http://localhost:3000"
echo " Electron: Opening desktop app..."
echo ""
echo "Press Ctrl+C to stop all servers"
echo ""
# Start all processes
npm run dev