Repository navigation
Expand file tree
/
Copy pathsetup_git.sh
More file actions
executable file
·133 lines (109 loc) · 2.03 KB
/
Copy pathsetup_git.sh
File metadata and controls
executable file
·133 lines (109 loc) · 2.03 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/bin/bash
echo "🚀 Setting up Git repository for Food Inventory Management System"
# Initialize git if not already initialized
if [ ! -d ".git" ]; then
echo "📁 Initializing Git repository..."
git init
else
echo "✅ Git repository already initialized"
fi
# Create .gitignore if it doesn't exist
if [ ! -f ".gitignore" ]; then
echo "📝 Creating .gitignore file..."
cat > .gitignore << 'EOF'
# Dependencies
node_modules/
*/node_modules/
# Production builds
.next/
dist/
build/
# Environment variables
.env
.env.local
.env.production
.env.staging
*.env
# Database
*.db
*.sqlite
*.sqlite3
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
ENV/
env.bak/
venv.bak/
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Logs
*.log
logs/
# Runtime data
pids/
*.pid
*.seed
*.pid.lock
# Coverage directory used by tools like istanbul
coverage/
# Dependency directories
jspm_packages/
# Optional npm cache directory
.npm
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# Vercel
.vercel
# Render
.render
EOF
echo "✅ .gitignore created"
else
echo "✅ .gitignore already exists"
fi
# Add all files
echo "📦 Adding files to Git..."
git add .
# Create initial commit
echo "💾 Creating initial commit..."
git commit -m "Initial commit: Food Inventory Management System
Features:
- FastAPI backend with SQLAlchemy ORM
- Next.js frontend with TypeScript
- Automatic inventory deduction system
- Raw materials management
- Food items with recipes
- Order processing with atomic transactions
- Dark/light theme support
- Production-ready deployment configuration"
echo "🎉 Git repository setup complete!"
echo ""
echo "Next steps:"
echo "1. Create a repository on GitHub"
echo "2. Add remote origin: git remote add origin <your-repo-url>"
echo "3. Push to GitHub: git push -u origin main"
echo ""
echo "For deployment instructions, see DEPLOYMENT.md"