-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick-start.sh
More file actions
56 lines (47 loc) Β· 1.35 KB
/
quick-start.sh
File metadata and controls
56 lines (47 loc) Β· 1.35 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
#!/bin/bash
# Carbon Verified - Quick Start Script
# This script helps you get started quickly
echo "π± Carbon Verified - Quick Start"
echo "================================"
echo ""
# Check if node 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 found: $(node --version)"
echo ""
# 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 "β
npm found: $(npm --version)"
echo ""
# Install dependencies
echo "π¦ Installing dependencies..."
npm install
if [ $? -eq 0 ]; then
echo "β
Dependencies installed successfully!"
else
echo "β Failed to install dependencies"
exit 1
fi
echo ""
echo "π― Setup complete!"
echo ""
echo "Next steps:"
echo "1. Deploy smart contract (see /contracts/CarbonTracker.sol)"
echo "2. Update CONTRACT_ADDRESS in /src/app/components/Web3Provider.tsx"
echo "3. Run 'npm run dev' to start the development server"
echo "4. Open http://localhost:5173 in your browser"
echo "5. Connect MetaMask and start testing!"
echo ""
echo "π Documentation:"
echo "- README.md - Complete documentation"
echo "- DEMO_GUIDE.md - Demo instructions"
echo "- JUDGES_CARD.md - Quick reference"
echo ""
echo "π Good luck with your hackathon!"