Google Drive Hosting with Apps Script

The tutorial on hosting websites with Google Drive makes use of the HTMLService of Google Apps Script. The user uploads a zip file, the file is extracted using the Utilities.unzip method (make the sure the MIME type is set to application/zip) and saved in a folder.

The setSharing method is then used for making the Google Drive folder public and the ID of the folder is passed to the user. Here’s the full code:

If you are looking to automate your business processes with Google Apps or need one-on-one technical support for Google Scripts, please book a meeting. The fee is $50 per half hour time slot.