-
Notifications
You must be signed in to change notification settings - Fork 0
Information for Developers
This page is for the owner/developer of the web app.
- Your organisation's domain-specific settings
Application files are stored in this Github repository and hosted in Google Apps Script.
- https://script.google.com/ > Start scripting > Log in
- https://script.google.com/ > New project > Untitled project > type Gsheet Search
- Project Settings (cog icon) > Show "appsscript.json" manifest file in editor
-
Project Settings (cog icon) > Script ID > Copy (this is the same ID as shown in the URL i.e.
https://script.google.com/home/projects/{ID})
Application code may be edited and deployed using the Apps Script project IDE (https://script.google.com/ > My Projects > Gsheet Search > Editor), which is similar to VSCode.
Alternatively, application code can be cloned to your local development environment using clasp. This simplifies some aspects of development and allows the code to be checked into version control (i.e. this repo).
This Medium article about clasp outlines the benefits of this approach.
To configure the CLASP configuration file:
- Open
.clasp.json - Locate the
scriptIdproperty and change its value to your script ID
Then:
npm install
npx clasp loginGet the latest code from the server, to capture changes from any developers not using the Github repo.
npx clasp pullCode execution can be tested by directly calling the serverside functions contained in Main.js.
This is a great way to get developer-friendly error messages, rather than the user-friendly ones provided in-app.
Due to issue #1, this requires jumping over to the online development environment.
npm run editor
# 'Select function to run' from the dropdown:
# doGet - tests the template generation
# Click 'Run'