https://github.com/tailorvj/hello-clasp
Get started developing Google Workspace Editor Add-ons today!
https://github.com/tailorvj/hello-clasp
addon appsscript clasp development google helloworld howto workspace
Last synced: 10 months ago
JSON representation
Get started developing Google Workspace Editor Add-ons today!
- Host: GitHub
- URL: https://github.com/tailorvj/hello-clasp
- Owner: tailorvj
- Created: 2023-04-13T15:19:44.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2023-10-25T14:50:56.000Z (over 2 years ago)
- Last Synced: 2025-06-04T00:48:42.854Z (12 months ago)
- Topics: addon, appsscript, clasp, development, google, helloworld, howto, workspace
- Language: JavaScript
- Homepage: https://github.com/tailorvj/hello-clasp
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello Clasp
The 'Hello, World!' of Apps Script development for Google Slides Editor add-ons.
Follow these steps to clone and deploy to Google Apps Script:
## You can open this repo for immediate development on Gitpod
* 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
```bash
$ 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
```bash
$ npm install -g @google/clasp
```
## Fork this repo
Once it is forked to your Github profile, clone it to your desktop
IMPORTANT: replace with your github user name
```bash
git clone git@github.com:/hello-clasp.git
```
## Create a clasp project
```bash
$ cd hello-clasp/src
$ clasp login
$ clasp create --title 'hello clasp' --type 'slides'
```
## Push to Apps Script and open for deployment
```bash
$ clasp push
$ clasp open
```
## Create a test deployment and test on an existing Slides presentation
Open the Deploy menu and create a test deployment for an Editor add-on, on an existing Slides presentation.
## Change log
### version 0.0.7 - Integrating Google Drive
* Added instructions for error throwing and handling.
* Added error related functionality to sidebar and AppsScript
### version 0.0.6 - Throwing and handling errors
* Added instructions for error throwing and handling.
* Added error related functionality to sidebar and AppsScript
### version 0.0.5 - create a simple dialgo
* Added instructions for creating a dialog.
* Added to the src: dialog related functions and dialog.html
### version 0.0.4 - create a simple sidebar
* Added instructions for creating a sidebar.
* Added to the src: sidebar functions and sidebar.html
### Version 0.0.3
* Added learn folder with instructions and code you can copy/paste in your environment
* Updated README