8000 GitHub - jmusits/AppScript-HTML-Test
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jmusits/AppScript-HTML-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppsScript-HTML-Starter

Overview

Create and Host a website with Apps Script. Work locally using your favorite IDE. Use HTML, CSS, and JavaScript to design your pages. Use clasp to push your code files to Google Drive and to deploy your site to Google Cloud Platform.

This project uses npm to install clasp. The clasp CLI lets you work on Google Apps Scripts locally and then push and deploy changes from your Terminal or IDE.

It is recommened you create a new repository using GitHub's template feature. Your new repository will contain this project's files and folder structure, but you will have a fresh history of changes.

Instructions

Create a new repository from a template

Above the README and file list in this GitHub repository, click Use this template. Chose the settings that fit your needs.

Clone your new repository and install clasp

git clone git@github.com:<YOUR_GITHUB>/<YOUR_REPO_NAME>
cd AppsScript-HTML-Starter
npm install

Give clasp permission to use your account

Run clasp login. This will open a browser where you must login and click through to grant clasp access to a few Google services. Once complete, return to your terminal or IDE.

Enable the Google Apps Script API

Open your Apps Script user settings.

https://script.google.com/home/usersettings

Turn on Google Apps Script API and return to your terminal or IDE.

Create a new Apps Script Web App

Use clasp to create a new blank Apps Script project. Set the type, title, and directory.

clasp create --type webapp --title "AppsScript-HTML-Starter" --rootDir ./

Push your local files to Google Drive.

Run clasp push to send your changes to Google Drive (aka script.google.com).

clasp push
└─ Code.gs
└─ appsscript.json
└─ index.html
Pushed 3 files.

Deploy your app to Google Cloud Platform

Run clasp deploy to deploy your app to GCP. Within your project, a new version is created and then published.

clasp deploy
Created version 1.
- AKf...LEQ @1.

Open the Web Page

Run clasp open --webapp and use arrow keys to select the version you just created.

clasp open --webapp
? Open which deployment? (Use arrow keys)
❯                               @HEAD - AKf...h2S

If everything worked, you should see the Hello Apps Script! welcome page.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0