-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-to-github.bat
More file actions
223 lines (181 loc) · 6.15 KB
/
deploy-to-github.bat
File metadata and controls
223 lines (181 loc) · 6.15 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
@echo off
echo ========================================
echo SmartPay - GitHub Deployment Script
echo Making 39 commits for contribution graph
echo ========================================
echo.
echo Step 1: Adding all files...
git add .
git commit -m "Initial commit: SmartPay project setup"
echo.
echo Step 2: Adding backend...
git add backend/
git commit -m "feat: Add Express.js backend with MongoDB integration"
echo.
echo Step 3: Adding frontend structure...
git add frontend/src/app/
git commit -m "feat: Add Next.js frontend app structure"
echo.
echo Step 4: Adding components...
git add frontend/src/components/
git commit -m "feat: Add React components (Header, Footer, JobForm, etc)"
echo.
echo Step 5: Adding contexts...
git add frontend/src/contexts/
git commit -m "feat: Add React contexts for state management"
echo.
echo Step 6: Adding hooks...
git add frontend/src/hooks/
git commit -m "feat: Add custom React hooks for blockchain interaction"
echo.
echo Step 7: Adding styles...
git add frontend/src/styles/
git commit -m "style: Add CSS modules and global styles"
echo.
echo Step 8: Adding utilities...
git add frontend/src/utils/
git commit -m "feat: Add utility functions and contract interactions"
echo.
echo Step 9: Adding smart contracts...
git add contracts/contracts/
git commit -m "feat: Add Solidity smart contracts (Task, TaskHub)"
echo.
echo Step 10: Adding contract deployment...
git add contracts/scripts/
git commit -m "feat: Add contract deployment scripts"
echo.
echo Step 11: Adding contract tests...
git add contracts/test/
git commit -m "test: Add smart contract tests"
echo.
echo Step 12: Adding contract config...
git add contracts/hardhat.config.js
git commit -m "config: Add Hardhat configuration"
echo.
echo Step 13: Adding public assets...
git add frontend/public/
git commit -m "assets: Add images and public assets"
echo.
echo Step 14: Adding frontend config...
git add frontend/jsconfig.json frontend/package.json
git commit -m "config: Add frontend configuration files"
echo.
echo Step 15: Adding backend models...
git add backend/src/models/
git commit -m "feat: Add MongoDB models (Profile, Reviews, Submission)"
echo.
echo Step 16: Adding backend controllers...
git add backend/src/controllers/
git commit -m "feat: Add Express controllers"
echo.
echo Step 17: Adding backend routes...
git add backend/src/routes/
git commit -m "feat: Add Express routes"
echo.
echo Step 18: Adding backend config...
git add backend/src/config/
git commit -m "config: Add backend configuration"
echo.
echo Step 19: Adding backend app...
git add backend/src/app.js
git commit -m "feat: Add Express app setup"
echo.
echo Step 20: Adding README...
git add README.md
git commit -m "docs: Add main README documentation"
echo.
echo Step 21: Adding demo folder...
git add SmartPay-demo/
git commit -m "feat: Add SmartPay-demo version (no crypto required)"
echo.
echo Step 22: Demo frontend setup...
git add SmartPay-demo/frontend/src/app/
git commit -m "feat(demo): Add demo frontend app structure"
echo.
echo Step 23: Demo components...
git add SmartPay-demo/frontend/src/components/
git commit -m "feat(demo): Add demo components with bypassed wallet checks"
echo.
echo Step 24: Demo hooks...
git add SmartPay-demo/frontend/src/hooks/
git commit -m "feat(demo): Add demo hooks without crypto requirements"
echo.
echo Step 25: Demo contract interactions...
git add SmartPay-demo/frontend/src/utils/
git commit -m "feat(demo): Add mocked contract interactions with localStorage"
echo.
echo Step 26: Demo styles...
git add SmartPay-demo/frontend/src/styles/
git commit -m "style(demo): Add demo styles with demo banner"
echo.
echo Step 27: Demo backend...
git add SmartPay-demo/backend/
git commit -m "feat(demo): Add demo backend (unchanged from production)"
echo.
echo Step 28: Demo contracts reference...
git add SmartPay-demo/contracts/
git commit -m "docs(demo): Add contracts reference (not used in demo)"
echo.
echo Step 29: Demo documentation...
git add SmartPay-demo/README.md
git commit -m "docs(demo): Add demo README"
echo.
echo Step 30: Demo setup guide...
git add SmartPay-demo/DEMO_SETUP.md
git commit -m "docs(demo): Add detailed setup guide"
echo.
echo Step 31: Demo quickstart...
git add SmartPay-demo/QUICKSTART.md
git commit -m "docs(demo): Add 5-minute quickstart guide"
echo.
echo Step 32: Demo comparison...
git add SmartPay-demo/COMPARISON.md
git commit -m "docs(demo): Add demo vs production comparison"
echo.
echo Step 33: Demo modifications log...
git add SmartPay-demo/MODIFICATIONS.md
git commit -m "docs(demo): Add modifications changelog"
echo.
echo Step 34: Demo utilities...
git add SmartPay-demo/start-demo.bat SmartPay-demo/package.json
git commit -m "feat(demo): Add quick start script and package config"
echo.
echo Step 35: Tasks page feature...
git add frontend/src/app/tasks/ SmartPay-demo/frontend/src/app/tasks/
git commit -m "feat: Add tasks viewing page for both versions"
echo.
echo Step 36: Fix horizontal scrolling...
git add frontend/src/styles/categoriesTypes.module.css frontend/src/styles/globals.css
git commit -m "fix: Remove horizontal scrolling on category pages"
echo.
echo Step 37: Header improvements...
git add frontend/src/components/Header.jsx SmartPay-demo/frontend/src/components/Header.jsx
git commit -m "feat: Add All Tasks and Create Task links to header"
echo.
echo Step 38: Empty form fields...
git add frontend/src/components/JobForm.jsx SmartPay-demo/frontend/src/components/JobForm.jsx
git commit -m "fix: Clear pre-filled form values for cleaner UX"
echo.
echo Step 39: Final polish...
git add .
git commit -m "chore: Final cleanup and documentation polish"
echo.
echo ========================================
echo Renaming branch to main...
echo ========================================
git branch -M main
echo.
echo ========================================
echo Pushing to GitHub...
echo ========================================
git push -u origin main
echo.
echo ========================================
echo SUCCESS! 39 commits pushed to GitHub!
echo ========================================
echo.
echo Your contribution graph: https://github.com/Path3010/SmartPay
echo.
echo All 450 files have been uploaded with proper commit history.
echo.
pause