-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_github.sh
More file actions
executable file
·71 lines (60 loc) · 1.85 KB
/
setup_github.sh
File metadata and controls
executable file
·71 lines (60 loc) · 1.85 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
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# Vayu Mitra GitHub Setup Script
# Smart India Hackathon 2025
echo "🐙 Setting up Vayu Mitra for GitHub"
echo "==================================="
# Check if git is installed
if ! command -v git &> /dev/null; then
echo "❌ Git is not installed. Please install git first."
exit 1
fi
# Check if we're in a git repository
if [ -d ".git" ]; then
echo "⚠️ Git repository already exists."
read -p "Do you want to reinitialize? (y/N): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
rm -rf .git
echo "🔄 Reinitializing git repository..."
else
echo "📝 Using existing git repository."
fi
else
echo "🔄 Initializing git repository..."
git init
fi
# Add all files
echo "📁 Adding files to git..."
git add .
# Create initial commit
echo "💾 Creating initial commit..."
git commit -m "Initial commit: Vayu Mitra MVP for Smart India Hackathon 2025
🌪️ AI-Powered Clean Air Intelligence Platform
Features:
- FastAPI Backend with SQLite database
- React Dashboard with real-time AQI monitoring
- Flutter Mobile App with multilingual support
- Policy simulation and AI recommendations
- Complete integration across all platforms
Tech Stack:
- Backend: Python FastAPI, SQLAlchemy
- Frontend: React.js, Chart.js, TailwindCSS
- Mobile: Flutter, Dart, Provider
- Database: SQLite with mock data engine
Ready for Smart India Hackathon 2025 presentation!"
echo ""
echo "✅ Git repository initialized successfully!"
echo ""
echo "📋 Next steps:"
echo "1. Create a new repository on GitHub"
echo "2. Copy the repository URL"
echo "3. Run the following commands:"
echo ""
echo " git remote add origin <YOUR_GITHUB_URL>"
echo " git branch -M main"
echo " git push -u origin main"
echo ""
echo "🔗 Or run: ./push_to_github.sh <YOUR_GITHUB_URL>"
echo ""
echo "📊 Repository status:"
git status --short