Course material, available in Catalan, Spanish and English.

Quick reference — Sessions 0–6

The essentials to keep beside you while practising. You can print this page.

Session 0: locate the parts

Not every app needs a remote server. Here we will connect a browser, Apps Script and Sheets.

AI helps build; it does not guarantee the result. Ask → understand → test → fix. Fictional data, authorised accounts and no credentials in the chat.

Session 1: connect and check

  1. Goal: one input and one clear result.
  2. Spreadsheet: Registres tab, exact headers in row 1 and document ID located.
  3. Code: request complete Codi.gs and Index.html files with server validation and visible errors.
  4. Connection: configure ID_DEL_FULL; the backend uses SpreadsheetApp.openById. Run comprovaConnexio and review permissions before authorising.
  5. First deployment: web app, running as your account with access restricted to you or an equivalent restricted option. Use /exec.
  6. Tests and change: valid input, invalid input, reload, access and phone. To keep the link: Manage deployments → Edit → New version.

If something does not fit: check the document ID (not Script ID), Registres, row 1, the account and server error. Do not accept permissions or switch identities to bypass a restriction.

Completion criterion: same URL, visible change and preserved data. Sharing and email are later extensions.

Keep file names, function names and exact headers unchanged. Changing the course language does not translate your project data.

Session 2: one change, one test

  1. Recover the correct S1 app. Check name, columns and link.
  2. Keep code and spreadsheet; create a copy with fictional data and adjust ID_DEL_FULL.
  3. Reproduce a small error at /dev, record expectations and the exact message; review and apply the smallest fix.
  4. Choose one improvement. Plan first; then reviewed code, valid-input, invalid-input and regression tests.
  5. Review security, permissions and access. AI assists; it does not certify.
  6. When it works, update the existing deployment: Manage deployments → Edit → New version. Repeat tests at the same /exec.

/dev runs saved code for editors only. /exec runs the deployed version. Do not deploy the deliberate error or make the app public to complete the exercise.

Search and summaries must state their scope. Photos, pagination and record editing are optional advanced challenges. Test worksheet.

Session 3: code, context and history

The “local” copy is in Codespaces, even on a cloud machine. github.dev is a lightweight editor without that machine. Neither runs Apps Script locally.

Cheat sheet — Session 4: A reviewed change

Clean working copy and updated main → branch → small change → test → commit/push → PR → review → merge → sync.

Test worksheet · Prompts: s4.build, s4.review and s4.pr.

Cheat sheet — Session 5: Publish and verify

Reviewed plan → adapted kit → credential outside chat → manual run → same /exec → optional automation.

Private repo protections depend on the plan and exceptions. If ineffective, keep the workflow manual. Prompts: s5.setup and s5.actionDebug.

Session 6 — A first cycle

  1. Define a need and an observable limit. You can continue with Apps Script.
  2. Compare services, permissions, costs and export before migrating.
  3. Use existing context and code, fictional data and one small change.
  4. Record valid, invalid, access, persistence and regression tests.
  5. Export and restore a backup; test installation and offline use separately.
  6. Declare plan, test and recovery before recording the exercise as complete.

S6 worksheet · Local/PWA guide. Prompts: s6.learn, s6.localFile and s6.pwa.

Page generated automatically from recursos/s0-s6/en/chuletes.md · reviewed on 2026-10-26. Edit the .md, not this file.
Download material as Markdown (.md)