Join Scott Simpson for an in-depth discussion in this video Sharing your script as a web app, part of Up and Running with Google Apps Script (2013).
Let's switch gears a little bit and look…at providing a web app powered by your script.…Up until now, I've talked about things that only you or…people that share documents that you've added to scripts can see.…But, what if you want to take your script out…to the web, and let users access it that way.…Google provides an HTML service to do just that.…In it's most basic form it's just a reference inside a function called do get.…And an HTML file.…To start with here, I'll just…use the HtmlService, and the createHtmlOutputFromFile method,…with the name of the HTML file that I'll create in just a minute.…
For more information you can check out the HTML service documentation on Google.…All right, I'll save this.…And I'll create a new HTML file. I'll call it index.…I'll add a little bit of content in here.…And you'll notice this page doesn't have any HTML head or body tags.…That's because HTML gets sanitized before it's served.…And the Sanitizer supplies its own tags of that variety.…Google also notes in their best practices documents, that you shouldn't use title…
- What is Google Apps Script?
- Creating and editing files with Apps Services
- Storing data for your script
- Using events and triggers in containers
- Building custom spreadsheet functions
- Sharing your script as a web app
- Serving JSON or XML from your script
- Publishing your app in the Chrome Web Store