Build your first app
Build a log you can open, fill in and return to. AI will help with the code; you will connect the pieces and check the result. You will first deploy it with restricted access.
- Format
- Online, at your own pace
- Estimated time
- About 2.5 hours, over one or more sittings
- Essential
- Save, retrieve and update an app
- Optional
- Improvements and access for other people
Before you start: use fictional data and an authorised account, and do not paste customer data or credentials into the chat. You can paste the prompts into whichever AI assistant you are authorised to use: the Gemini button is a shortcut, not a requirement.
Before you finish…
Check the result before marking the exercise complete. You do not need to memorise the code, but you should know what each part does and what you have tested.
- ✓I have a practice spreadsheet, the Registres tab and the correct headers.
- ✓I have added Codi.gs and Index.html to the project, configured the spreadsheet ID and checked the connection.
- ✓I have deployed the web app with restricted access and reviewed its permissions.
- ✓I have tested /exec: it saves, retrieves data and rejects invalid input. I have checked it on my phone too.
- ✓I have deployed a new version at the same link and checked that the data is preserved.
My app gallery
When you publish the app, paste its link (/exec) here. It is saved in your browser and will be here when you return. If you start others, they will appear here.
Check your understanding
This is for you, not an exam or a grade. Think through your answers, then compare them below.
- What are the two files in an Apps Script app, and what does each do?
- What must you configure so the backend can find the spreadsheet and data?
- What do you do if an unexpected permission is requested?
- How do you test and update the app without changing its link?
See the answers ▾
1. Index.html is the dining room in the browser and Codi.gs is the kitchen in Apps Script. They communicate through google.script.run.
2. The document ID, the Registres tab and the headers in row 1. The backend opens the document using SpreadsheetApp.openById.
3. Stop and review the account, project, code and permissions. If it is an organisational restriction, consult the administrator.
4. Check valid input, invalid input, persistence and access. Then update the existing deployment through Manage deployments → Edit → New version and repeat the tests at the same /exec.