-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseed-tasks.html
More file actions
284 lines (273 loc) · 10.6 KB
/
Copy pathseed-tasks.html
File metadata and controls
284 lines (273 loc) · 10.6 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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Proofly - Seed Tasks</title>
<style>
body {
font-family: system-ui, -apple-system, sans-serif;
max-width: 800px;
margin: 50px auto;
padding: 20px;
background: #0f172a;
color: #e2e8f0;
}
.container {
background: #1e293b;
padding: 30px;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
h1 {
color: #3b82f6;
margin-bottom: 10px;
}
button {
background: #3b82f6;
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
margin-top: 20px;
}
button:hover {
background: #2563eb;
}
button:disabled {
background: #64748b;
cursor: not-allowed;
}
.status {
margin-top: 20px;
padding: 15px;
border-radius: 8px;
display: none;
}
.status.success {
background: #10b981;
color: white;
display: block;
}
.status.error {
background: #ef4444;
color: white;
display: block;
}
.status.loading {
background: #f59e0b;
color: white;
display: block;
}
.task-list {
margin-top: 20px;
padding: 15px;
background: #334155;
border-radius: 8px;
}
.task-item {
padding: 8px 0;
border-bottom: 1px solid #475569;
}
.task-item:last-child {
border-bottom: none;
}
code {
background: #334155;
padding: 2px 6px;
border-radius: 4px;
font-size: 14px;
}
</style>
</head>
<body>
<div class="container">
<h1>🚀 Proofly Task Seeder</h1>
<p>This will add 5 sample tasks to your Firestore database.</p>
<div class="task-list">
<strong>Tasks to be added:</strong>
<div class="task-item">1. Build REST API for E-commerce Platform (Backend, Medium)</div>
<div class="task-item">2. Interactive Dashboard with Data Visualization (Frontend, Medium)</div>
<div class="task-item">3. Data Analysis Pipeline with Python (Data Science, Hard)</div>
<div class="task-item">4. Authentication System with JWT (Backend, Easy)</div>
<div class="task-item">5. Responsive Landing Page (Frontend, Easy)</div>
</div>
<button id="seedBtn" onclick="seedTasks()">Seed Tasks</button>
<div id="status" class="status"></div>
</div>
<script type="module">
import { initializeApp } from 'https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js';
import { getFirestore, collection, addDoc } from 'https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js';
const firebaseConfig = {
apiKey: "AIzaSyDNBSxoPjoabdaJ8uC46S0Lyih2_EdVI7g",
authDomain: "proofly-prod-cb275.firebaseapp.com",
projectId: "proofly-prod-cb275",
storageBucket: "proofly-prod-cb275.firebasestorage.app",
messagingSenderId: "308299194853",
appId: "1:308299194853:web:a0a374ae2247e077860f0c"
};
const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
const tasks = [
{
title: 'Build REST API for E-commerce Platform',
company: 'TechCorp',
domain: 'Backend',
difficulty: 'Medium',
context: 'Build a RESTful API for a basic e-commerce platform with product management and order processing.',
constraints: [
'Use Node.js with Express or similar framework',
'Implement proper error handling',
'Include API documentation',
'Time limit: 4 hours',
],
deliverables: [
'GitHub repository with source code',
'README with setup instructions',
'API documentation (Postman collection or OpenAPI spec)',
'Working demo deployed on free tier (Render, Railway, etc.)',
],
checklist: [
'Product CRUD endpoints',
'Order creation endpoint',
'Input validation',
'Error handling middleware',
'API documentation',
],
skills: ['Node.js', 'Express', 'REST API', 'Error Handling', 'API Design'],
estimatedTime: '3-4 hours',
},
{
title: 'Interactive Dashboard with Data Visualization',
company: 'DesignStudio',
domain: 'Frontend',
difficulty: 'Medium',
context: 'Create an interactive dashboard that displays sales data with charts and filters.',
constraints: [
'Use React or Vue.js',
'Implement at least 2 chart types',
'Make it responsive',
'Time limit: 4 hours',
],
deliverables: [
'GitHub repository with source code',
'Live demo link (Vercel, Netlify, etc.)',
'README with features list',
],
checklist: [
'Data visualization with charts',
'Filter/search functionality',
'Responsive design',
'Clean UI/UX',
'Performance optimization',
],
skills: ['React', 'Data Visualization', 'Responsive Design', 'UI/UX', 'Chart.js'],
estimatedTime: '3-4 hours',
},
{
title: 'Data Analysis Pipeline with Python',
company: 'DataDriven',
domain: 'Data Science',
difficulty: 'Hard',
context: 'Build a data analysis pipeline that processes CSV data, performs analysis, and generates insights.',
constraints: [
'Use Python with pandas',
'Include data cleaning steps',
'Generate visualizations',
'Time limit: 5 hours',
],
deliverables: [
'GitHub repository with Jupyter notebook',
'Sample dataset included',
'README with analysis summary',
'Visualization outputs',
],
checklist: [
'Data loading and cleaning',
'Statistical analysis',
'Data visualizations',
'Insights documentation',
'Code documentation',
],
skills: ['Python', 'Pandas', 'Data Analysis', 'Matplotlib', 'Statistics'],
estimatedTime: '4-5 hours',
},
{
title: 'Authentication System with JWT',
company: 'SecureApp',
domain: 'Backend',
difficulty: 'Easy',
context: 'Implement a simple authentication system with user registration, login, and JWT tokens.',
constraints: [
'Use any backend framework',
'Implement password hashing',
'JWT token generation',
'Time limit: 3 hours',
],
deliverables: [
'GitHub repository',
'API endpoints for auth',
'README with API usage',
],
checklist: [
'User registration endpoint',
'Login endpoint',
'Password hashing',
'JWT token generation',
'Protected route example',
],
skills: ['Authentication', 'JWT', 'Security', 'Password Hashing', 'API Development'],
estimatedTime: '2-3 hours',
},
{
title: 'Responsive Landing Page',
company: 'StartupX',
domain: 'Frontend',
difficulty: 'Easy',
context: 'Create a modern, responsive landing page for a SaaS product.',
constraints: [
'Mobile-first design',
'Include hero section, features, and CTA',
'Use modern CSS (Flexbox/Grid)',
'Time limit: 3 hours',
],
deliverables: [
'GitHub repository',
'Live demo link',
'Responsive on all devices',
],
checklist: [
'Hero section with CTA',
'Features section',
'Responsive design',
'Modern styling',
'Cross-browser compatible',
],
skills: ['HTML', 'CSS', 'Responsive Design', 'UI/UX', 'Flexbox'],
estimatedTime: '2-3 hours',
},
];
window.seedTasks = async function() {
const btn = document.getElementById('seedBtn');
const status = document.getElementById('status');
btn.disabled = true;
status.className = 'status loading';
status.textContent = '⏳ Adding tasks to Firestore...';
try {
for (let i = 0; i < tasks.length; i++) {
await addDoc(collection(db, 'tasks'), tasks[i]);
status.textContent = `⏳ Added ${i + 1} of ${tasks.length} tasks...`;
}
status.className = 'status success';
status.textContent = `✅ Success! Added ${tasks.length} tasks to Firestore. You can now close this page and refresh your app!`;
} catch (error) {
status.className = 'status error';
status.textContent = `❌ Error: ${error.message}`;
btn.disabled = false;
}
};
</script>
</body>
</html>