The 'Hello, World!' of Apps Script development for Google Slides Editor add-ons.
Follow these steps to clone and deploy to Google Apps Script:
- Fork this project
- Copy your repo URL from the browser address bar
- Open https://gitpod.io/
- Create a new workspace
- Paste your repo address
- Skip to Create a clasp project below
- clasp login requires the use of curl for the final stage on Gitpod
For local development (not on gitpod) This repo assumes you have Node.js, NPM and Clasp CLI installed
If you would like to install node.js v21.0.0, you can use NVM like this:
Install NVM & node.js v21
$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
$ source ~/.bashrc
$ nvm install v21.0.0
$ nvm use v21.0.0
To install Clasp
$ npm install -g @google/clasp
Once it is forked to your Github profile, clone it to your desktop
IMPORTANT: replace with your github user name
git clone git@github.com:<your-github>/hello-clasp.git
$ cd hello-clasp/src
$ clasp login
$ clasp create --title 'hello clasp' --type 'slides'
$ clasp push
$ clasp open
Open the Deploy menu and create a test deployment for an Editor add-on, on an existing Slides presentation.
- Added instructions for error throwing and handling.
- Added error related functionality to sidebar and AppsScript
- Added instructions for error throwing and handling.
- Added error related functionality to sidebar and AppsScript
- Added instructions for creating a dialog.
- Added to the src: dialog related functions and dialog.html
- Added instructions for creating a sidebar.
- Added to the src: sidebar functions and sidebar.html
- Added learn folder with instructions and code you can copy/paste in your environment
- Updated README