Google Spreadsheet 快速搭建免費資料庫 (上)

上篇: Google App Script 部署網路應用程式

SheiUn
sheiun
2 min readSep 2, 2018

--

事前準備

  1. 一個可以使用的 Google 帳戶
  2. 在 Google Drive 中新增一個 Spreadsheet(試算表)

開始吧!

  1. 進入 Spreadsheet 中點選 工具 > 指令碼編輯器

2. 給 Google App Script 隨便打一個名字

3. 將程式碼改成

function doGet(e) {
return ContentService.createTextOutput("你好世界!");
}

4. 點選 發佈 > 部署為網路應用程式…

5. 將 具有應用程式存取權的使用者 改成 任何人,甚至是匿名使用者

6. 點選 部署

現在你會拿到一個 url(網址)

網址的格式如下:
https://script.google.com/macros/s/一些英數底線組合的字串/exec

連上去之後你就會看到你好世界囉!

記得要去看 下篇 才能了解完整的資料庫建置方法喔!

--

--

SheiUn
sheiun
Writer for

I’m studying Management of Information System in NTUST. I love to study many kinds of books. And watch some science channel.