Repository navigation
Expand file tree
/
Copy pathstart-dev.sh
More file actions
executable file
Β·59 lines (48 loc) Β· 1.63 KB
/
Copy pathstart-dev.sh
File metadata and controls
executable file
Β·59 lines (48 loc) Β· 1.63 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
#!/bin/bash
echo "π Starting ERPNext App Builder Development Environment..."
# Kill any existing processes on the ports
echo "π¦ Cleaning up existing processes..."
lsof -ti:3000 | xargs kill -9 2>/dev/null || true
lsof -ti:3001 | xargs kill -9 2>/dev/null || true
# Wait a moment for cleanup
sleep 2
# Start MCP Server
echo "π§ Starting MCP Server on port 3000..."
cd mcp-server && npm start > ../logs/mcp-server.log 2>&1 &
MCP_PID=$!
# Wait for MCP server to start
sleep 5
# Start React UI
echo "π¨ Starting React UI on port 3001..."
cd ../app-builder-ui && npm start > ../logs/react-ui.log 2>&1 &
UI_PID=$!
# Wait for React app to start
sleep 10
# Check if both services are running
echo "π Checking services..."
if curl -s http://localhost:3000/health > /dev/null; then
echo "β
MCP Server is running on http://localhost:3000"
else
echo "β MCP Server failed to start"
fi
if curl -s http://localhost:3001 > /dev/null; then
echo "β
React UI is running on http://localhost:3001"
else
echo "β React UI failed to start"
fi
echo ""
echo "π ERPNext App Builder is ready!"
echo "π± Frontend: http://localhost:3001"
echo "π§ Backend: http://localhost:3000"
echo "π‘ Health: http://localhost:3000/health"
echo ""
echo "π Available Features:"
echo " πͺ AI Prompt Enhancer - Transform ideas into PRDs"
echo " ποΈ PRD Review - Quality analysis and improvements"
echo " π₯ Collaborative Review - Team workflow"
echo " π Complete App Generation - End-to-end pipeline"
echo ""
echo "π To stop: ./stop-dev.sh"
echo "π Logs: tail -f logs/mcp-server.log logs/react-ui.log"
# Keep script running
wait