# Quick teaching guide (optional classroom route)

> The main course is **online and self-paced**. This guide summarises how to facilitate it in a classroom. Sessions 1–6 have complete guides (`sessio_N/guia_professor_sessioN.md`); this is the overall map.

## Course at a glance

| Session | Format | Duration | Minimum goal | New tool |
|---|---|---|---|---|
| **0** | Self-study | ~30 min | Recognise an app’s parts | — |
| **1** | Optional classroom session | 150 min | **First practice app with tested /exec and restricted access** | Sheets + Apps Script + Gemini |
| **2** | Independent | ~150 min | Diagnosis, **one tested improvement**, and security/access review | Debugging loop |
| **3** | Optional classroom session | 150 min | **Existing code, context, reviewed change and commit/push** | GitHub + Codespaces |
| **4** | Independent | ~150 min | **Small branch change, tests, reviewed PR and checked merge** | Branches + PRs |
| **5** | Optional classroom session | 150 min | **Reviewed plan, manual run, tested same /exec and planned recovery** | clasp + GitHub Actions |
| **6** | Online, open-ended | — | Bounded plan, test result and recovery; support when needed | Transferable method |

## Prepare before each session

- **All:** projector, 125–150% zoom, reliable connection and interactive HTML open.
- **S1:** an **already published demo app**, the Sleep diary, with its project open.
- **S2:** practice copy with fictional data. Rehearse the reversible error on **/dev**, a small improvement and its tests. Photos are optional.
- **S3:** account and private repo, S2 code, checked quotas, Codespace and two context documents. Prepare an external chat if no integrated agent is available.
- **S4:** practice repo with the **branch → PR → review → merge** flow rehearsed.
- **S5:** rehearse the [practice kit](kit-desplegament-s5.md), consent outside the chat, first manual run and recovery. Identify spreadsheet, project and deployment. If the account cannot support a real test, prepare a simulation and record that test as pending.

## Three teaching rules

1. **Do not explain code line by line.** The aim is to understand the flow and **request, paste and debug**.
2. **Do not type on their computer.** Point out the error and let the learner correct it.
3. **Normalise errors.** They are part of learning. **Read each warning and permission** before accepting; automatically continuing does not solve everything.

## The course thread

> “One app, one new spreadsheet” → “one app, one new repo” → “one branch per change”.
> “Dining room/frontend → kitchen/backend → pantry/database; storage for files.” · “Breaking and fixing is normal.” · “Context is the key.” · “Publish and check the same link.” · “Ask for it and understand it.”

## When time is short

- **Always keep:** the table’s minimum goal and, in S2/S5, **the debugging loop**.
- **You may postpone:** a second app or improvement, polish and long presentations.
- **You may shorten:** style choices, optional challenges and paired activities.

## Five common difficulties

1. **Restricted account:** read the message and consult the administrator. Never lend accounts or bypass policy.
2. **HTML file not named `Index`:** the app may be blank.
3. **“New deployment” every time:** the link changes. Use a *new version* in the existing deployment.
4. **Commit without push (S3):** the change is missing on GitHub.
5. **Secret name differs from the workflow (S5):** the Action fails.

The complete table is in each session’s guide; learners can use the [FAQ](faq-alumne.md). Find the guides through the [visual index](../../guias-professor.en.html).

## What to send and when

| When | Material |
|---|---|
| Before S1 | **S0** HTML, reminder of **authorised account and fictional data**, and course folder |
| After S1 | **S2** HTML, deadline and reminder to bring the published app |
| After S3 | **S4** HTML, deadline and reminder to bring the repo |
| At the end | **S6** HTML to continue with the method |

Ready-to-adapt wording is in the [communication templates](plantilles-comunicacio.md).

## Complete teaching guides

The [guide index](../../guias-professor.en.html) opens each web template. The `.md` files remain the repository’s editable sources.
