BookStack + Google Apps Script Integration Demo

Overview

This project will help you get familiar with our technical setup by integrating a Google Apps Script web app into our BookStack knowledge base. You will be working with Docker, Google Apps Script, and BookStack.

Objectives

Prerequisites

Before starting, please review the following documentation to ensure a smooth setup:

Note:
  • The following steps are starting points; additional configuration or troubleshooting may be required.
  • Embedding an iframe might necessitate adjusting BookStack's configuration settings.
  • Deploying the Google Apps Script web app could involve modifying access permissions or deployment settings.
  • Utilize tools like ChatGPT, Grok Deep Research, or other resources to assist with any challenges you encounter during this project.

Tasks

1. Set Up BookStack with Docker

Expected Outcome: BookStack app is running locally in Docker.


2. Create a Google Apps Script Web App

  1. Go to script.google.com.
  2. Create a new project and paste the following code:
function doGet() {
  return HtmlService.createHtmlOutput("<h1>Hello World</h1>");
}
  1. Deploy the script as a web app:
    • Click Deploy > New deployment.
    • Click Select type and choose Web app.
    • Enter a description, e.g., "Hello World Deployment".
    • Under Execute as, select Me.
    • Under Who has access, select Anyone.
    • Click Deploy.
    • Authorize the script if prompted.
    • Copy the deployment URL.

Expected Outcome: A public URL that displays "Hello World".


3. Embed the Web App in BookStack

<iframe src="YOUR_WEB_APP_URL_HERE" width="100%" height="500" style="border: none;"></iframe>

Embedding external content via iframes may require additional configuration in BookStack to allow such content. Refer to the BookStack documentation for guidance on adjusting settings to permit iframe embedding.

Expected Outcome: A page in BookStack that shows the embedded "Hello World" web app.


Final Deliverable

Please record a short demo video showing:

Upload the video to the following Google Drive folder:
Upload Link


Questions or Issues?

If you run into any problems or have questions, reach out to Thian-Peng directly on Signal.


Revision #2
Created 20 April 2025 08:27:30 by Thian-Peng Ter
Updated 20 April 2025 09:04:06 by Thian-Peng Ter