Repository navigation
Expand file tree
/
Copy pathsetup-guide.html
More file actions
516 lines (457 loc) · 15.7 KB
/
Copy pathsetup-guide.html
File metadata and controls
516 lines (457 loc) · 15.7 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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>EcoLoop Student Guide • Agentic Coding & Zero-Cost Architecture</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
color: #0f172a;
background: #ffffff;
padding: 32px 40px;
line-height: 1.45;
font-size: 13px;
-webkit-font-smoothing: antialiased;
}
/* Header */
.header {
border-bottom: 2px solid #1f6b4f;
padding-bottom: 12px;
margin-bottom: 18px;
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.title {
font-size: 24px;
font-weight: 800;
letter-spacing: -0.025em;
color: #171a18;
}
.title span {
color: #1f6b4f;
}
.subtitle {
font-size: 13px;
color: #526058;
margin-top: 3px;
}
.meta {
text-align: right;
font-size: 11.5px;
color: #1f6b4f;
font-weight: 600;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
line-height: 1.4;
}
/* Sections */
.section {
margin-bottom: 16px;
}
.section-title {
font-size: 14.5px;
font-weight: 700;
color: #171a18;
letter-spacing: -0.01em;
margin-bottom: 8px;
padding-bottom: 4px;
border-bottom: 1px solid #e2e8e0;
display: flex;
align-items: center;
gap: 8px;
}
.section-title .badge {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10px;
font-weight: 700;
background: #e8efe9;
color: #1f6b4f;
padding: 2px 6px;
border-radius: 3px;
}
p {
color: #334155;
margin-bottom: 6px;
line-height: 1.5;
}
/* Code Blocks */
.code-block {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6px;
padding: 10px 14px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11.5px;
color: #0f172a;
margin: 6px 0 10px 0;
line-height: 1.45;
}
.code-comment {
color: #64748b;
}
/* Grids & Cards */
.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-top: 8px;
}
.card {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6px;
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 4px;
}
.card-title {
font-size: 12.5px;
font-weight: 700;
color: #0f172a;
}
.card-desc {
font-size: 11.5px;
color: #475569;
line-height: 1.4;
}
/* Highlight Feature Box */
.featured-box {
background: #f0f7f3;
border: 1.5px solid #1f6b4f;
border-radius: 6px;
padding: 12px 14px;
margin: 8px 0 12px 0;
}
.featured-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.featured-title {
font-size: 13.5px;
font-weight: 700;
color: #1f6b4f;
}
.featured-tag {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10px;
font-weight: 700;
background: #1f6b4f;
color: #ffffff;
padding: 2px 8px;
border-radius: 4px;
}
.featured-desc {
font-size: 12px;
color: #1e293b;
line-height: 1.45;
}
/* Video Resource Rows */
.video-row {
display: flex;
align-items: flex-start;
gap: 12px;
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 6px;
padding: 10px 12px;
margin-bottom: 8px;
}
.video-icon {
width: 28px;
height: 28px;
background: #fee2e2;
color: #dc2626;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 2px;
font-size: 14px;
}
.video-content {
flex: 1;
}
.video-title {
font-size: 12.5px;
font-weight: 700;
color: #0f172a;
}
.video-title a {
color: #0f172a;
text-decoration: none;
}
.video-title a:hover {
text-decoration: underline;
color: #1f6b4f;
}
.video-query {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10.5px;
color: #1f6b4f;
margin: 2px 0 4px 0;
}
.video-desc {
font-size: 11px;
color: #64748b;
line-height: 1.35;
}
/* Steps */
.steps-list {
list-style: none;
counter-reset: step-counter;
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 6px;
}
.steps-list li {
counter-increment: step-counter;
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 12px;
color: #334155;
}
.steps-list li::before {
content: counter(step-counter);
background: #1f6b4f;
color: #ffffff;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10.5px;
font-weight: 700;
width: 18px;
height: 18px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 1px;
}
.steps-list strong {
color: #0f172a;
}
/* Footer */
.footer {
margin-top: 16px;
padding-top: 10px;
border-top: 1px solid #e2e8e0;
display: flex;
justify-content: space-between;
font-size: 11px;
color: #64748b;
}
.footer a {
color: #1f6b4f;
text-decoration: none;
font-weight: 600;
}
.page-break {
page-break-after: always;
break-after: page;
height: 0;
margin: 0;
padding: 0;
}
@media print {
body {
padding: 0;
}
@page {
size: A4 portrait;
margin: 12mm 14mm;
}
}
</style>
</head>
<body>
<!-- ================= PAGE 1 ================= -->
<div class="header">
<div>
<h1 class="title">EcoLoop <span>Student Setup Guide</span></h1>
<p class="subtitle">Agentic coding, free local AI models, and zero-cost web deployment.</p>
</div>
<div class="meta">
Swami Sant Dass Public School<br>
github.com/Harman209/ecoloop
</div>
</div>
<!-- FEATURED LECTURE -->
<div class="featured-box">
<div class="featured-header">
<span class="featured-title">🎓 MIT Missing Semester • Lecture 7: Agentic Coding</span>
<span class="featured-tag">MUST WATCH</span>
</div>
<p class="featured-desc">
Taught at <strong>MIT CSAIL</strong> (missing.csail.mit.edu). This lecture bridges the gap between basic chat tools and actual autonomous development. It covers tool use (how agents read and write real workspace files), execution loops (letting agents run compilers and tests to self-repair), and context management via <code>AGENTS.md</code>.
</p>
<div style="margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #1f6b4f;">
Search on YouTube: <strong>"MIT Missing Semester Lecture 7: Agentic Coding"</strong> • Link: <strong>missing.csail.mit.edu</strong>
</div>
</div>
<!-- SECTION 1: THE AGENTIC SHIFT -->
<div class="section">
<h2 class="section-title">
<span>1. The Paradigm Shift: Developer as Architect</span>
<span class="badge">CORE CONCEPT</span>
</h2>
<p>
Traditional coding required months of syntax memorization before you could test an idea. With modern agentic harnesses, you don't type boilerplate by hand.
You define the rules, architecture, and user experience; an autonomous agent creates the components and updates repository files; your job is quality control and browser testing.
</p>
</div>
<!-- SECTION 2: OPENCODE INSTALLATION -->
<div class="section">
<h2 class="section-title">
<span>2. Quick Tool Setup: OpenCode Terminal Agent</span>
<span class="badge">60 SECONDS</span>
</h2>
<p>
OpenCode (github.com/anomalyco/opencode) is an open-source terminal coding agent that runs on Linux, macOS, and Windows (WSL/PowerShell). It reads your local project tree and executes multi-file edits directly.
</p>
<div class="code-block">
<span class="code-comment"># Option A: Install globally via npm (Node.js)</span><br>
npm install -g @opencode/cli<br><br>
<span class="code-comment"># Option B: Direct shell installer (macOS / Linux)</span><br>
curl -fsSL https://opencode.ai/install.sh | bash
</div>
</div>
<!-- SECTION 3: FREE MODEL ENGINES -->
<div class="section">
<h2 class="section-title">
<span>3. The Free AI Matrix: Zero Dollars, No Credit Cards</span>
<span class="badge">STUDENT FRIENDLY</span>
</h2>
<p>You do not need expensive subscriptions to run autonomous coding agents. Here are the 4 best zero-dollar options:</p>
<div class="grid-2">
<div class="card">
<div class="card-title">1. Ollama • 100% Offline & Private</div>
<div class="card-desc">
Download <strong>ollama.com</strong>. Runs entirely on your laptop hardware without internet. Run <code>ollama run qwen2.5-coder:7b</code> for top-tier coding performance on standard student laptops.
</div>
</div>
<div class="card">
<div class="card-title">2. Google AI Studio (Gemini API)</div>
<div class="card-desc">
Visit <strong>aistudio.google.com</strong>. Generates free API keys with generous rate limits for Gemini 1.5 Flash and Gemini 2.0. Perfect for large full-stack codebases.
</div>
</div>
<div class="card">
<div class="card-title">3. Groq Cloud • Ultra-Fast Inference</div>
<div class="card-desc">
Visit <strong>console.groq.com</strong>. Provides ultra-fast token streaming of open-weight models like Llama 3.3 70B for $0.00. Instant file generation.
</div>
</div>
<div class="card">
<div class="card-title">4. GitHub Student Developer Pack</div>
<div class="card-desc">
Verify your student ID at <strong>education.github.com</strong>. Unlocks free access to GitHub Models, Codespaces, domain names, and free cloud hosting credits.
</div>
</div>
</div>
</div>
<div class="footer">
<span>Page 1 / 2 • EcoLoop Open Education Project</span>
<span>Source: <a href="https://github.com/Harman209/ecoloop">github.com/Harman209/ecoloop</a></span>
</div>
<!-- ================= PAGE 2 ================= -->
<div class="page-break"></div>
<div class="header" style="margin-top: 14px;">
<div>
<h1 class="title">Masterclass Library <span>& Project Deployment</span></h1>
<p class="subtitle">Curated video tutorials and step-by-step instructions to launch your own circular platform.</p>
</div>
<div class="meta">
Swami Sant Dass Public School<br>
ecoloop-ssdps.vercel.app
</div>
</div>
<!-- SECTION 4: CURATED YOUTUBE LIBRARY -->
<div class="section">
<h2 class="section-title">
<span>4. Curated Video Masterclasses</span>
<span class="badge">RECOMMENDED WATCHING</span>
</h2>
<div class="video-row">
<div class="video-icon">▶</div>
<div class="video-content">
<div class="video-title"><a href="https://missing.csail.mit.edu" target="_blank">1. MIT CSAIL: The Missing Semester • Lecture 7: Agentic Coding</a></div>
<div class="video-query">YouTube Search: "MIT Missing Semester Lecture 7 Agentic Coding"</div>
<div class="video-desc">Understand the underlying mechanics: tool execution loops, context boundaries, file system access, and how agents self-diagnose compiler errors.</div>
</div>
</div>
<div class="video-row">
<div class="video-icon">▶</div>
<div class="video-content">
<div class="video-title">2. Ollama • Complete Beginner Guide to Running AI Locally on Your Laptop</div>
<div class="video-query">YouTube Search: "Ollama beginner guide local AI models tutorial"</div>
<div class="video-desc">How to install Ollama on Windows, Mac, or Linux, pull <code>qwen2.5-coder</code>, and connect it to your terminal tools with zero cloud reliance.</div>
</div>
</div>
<div class="video-row">
<div class="video-icon">▶</div>
<div class="video-content">
<div class="video-title">3. Deploy React & Vite to Vercel in 60 Seconds (100% Free Hobby Tier)</div>
<div class="video-query">YouTube Search: "Deploy Vite React app to Vercel free guide"</div>
<div class="video-desc">Connect your GitHub repository to Vercel for automatic continuous deployments, custom domain routing, and free global SSL.</div>
</div>
</div>
<div class="video-row">
<div class="video-icon">▶</div>
<div class="video-content">
<div class="video-title">4. Google Sheets as a Free Database with Google Apps Script Webhooks</div>
<div class="video-query">YouTube Search: "Google Sheets as database Google Apps Script POST webhook"</div>
<div class="video-desc">How to write a 10-line Apps Script function that receives POST requests from a React form and appends new rows into a spreadsheet for $0/month.</div>
</div>
</div>
</div>
<!-- SECTION 5: CLONE ECOLOOP IN 3 STEPS -->
<div class="section">
<h2 class="section-title">
<span>5. How to Fork & Deploy EcoLoop for Your School</span>
<span class="badge">TAKE ACTION</span>
</h2>
<ol class="steps-list">
<li>
<div><strong>Fork the Repository:</strong> Go to <code>github.com/Harman209/ecoloop</code> and click <em>Fork</em> to create your own copy on GitHub.</div>
</li>
<li>
<div><strong>Deploy on Vercel:</strong> Sign in to <code>vercel.com</code> with GitHub, click <em>Add New Project</em>, select your forked <code>ecoloop</code> repo, and click <em>Deploy</em>. You get a live <code>.vercel.app</code> URL in under 2 minutes.</div>
</li>
<li>
<div><strong>Connect Your Google Sheet:</strong> Create a Google Sheet, open <em>Extensions → Apps Script</em>, paste the webhook script from <code>docs/apps-script.js</code>, and paste your web app URL into your project's contact form. All inquiries now flow into your private sheet.</div>
</li>
</ol>
</div>
<!-- SECTION 6: THREE GOLDEN RULES -->
<div class="section">
<h2 class="section-title">
<span>6. The Three Invariant Rules of Working with Coding Agents</span>
<span class="badge">BUILDER WISDOM</span>
</h2>
<div class="grid-2">
<div class="card" style="border-left: 3px solid #1f6b4f;">
<div class="card-title">Rule 01: Write the Spec First (AGENTS.md)</div>
<div class="card-desc">Create an <code>AGENTS.md</code> file in your repo root before coding. State your colors, design rules, and file boundaries so the agent never hallucinates.</div>
</div>
<div class="card" style="border-left: 3px solid #b45309;">
<div class="card-title">Rule 02: Deployed Without Testing = Broken</div>
<div class="card-desc">The AI will confidently say "all bugs resolved". Never believe it. Click every button, test the form fields, and inspect the browser console yourself.</div>
</div>
</div>
</div>
<div class="footer">
<span>Swami Sant Dass Public School • EcoLoop Open Source Project</span>
<span>Live Platform: <a href="https://ecoloop-ssdps.vercel.app">ecoloop-ssdps.vercel.app</a></span>
</div>
</body>
</html>