-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·55 lines (42 loc) · 1.13 KB
/
setup.sh
File metadata and controls
executable file
·55 lines (42 loc) · 1.13 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
#!/bin/bash
# MCP Todo Server - Complete Setup Script
# This script performs the complete setup for new users
echo "🚀 MCP Todo Server - Complete Setup"
echo "===================================="
echo ""
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed. Please install Node.js first."
echo " Visit: https://nodejs.org/"
exit 1
fi
# Check if npm is installed
if ! command -v npm &> /dev/null; then
echo "❌ npm is not installed. Please install npm first."
exit 1
fi
echo "✅ Node.js and npm are installed"
echo ""
# Install dependencies
echo "📦 Installing dependencies..."
npm install
if [ $? -ne 0 ]; then
echo "❌ Failed to install dependencies"
exit 1
fi
echo "✅ Dependencies installed"
echo ""
# Build the project
echo "🔨 Building project..."
npm run build
if [ $? -ne 0 ]; then
echo "❌ Failed to build project"
exit 1
fi
echo "✅ Project built successfully"
echo ""
# Run the complete setup
echo "🚀 Running complete setup..."
node scripts/setup-and-start.js
echo ""
echo "🎉 Setup complete! Enjoy using MCP Todo Server!"