架設網頁應用,真的需要主機嗎?為了網頁運作的流暢,通常需要後端硬體的幫助。然而對於大多數新接觸的學生而言,主機所需的龐大費用、複雜的資料庫管理。高昂的經濟及時間成本,容易成為勸退新手的主要原因。
在這次的議程中,藉由自身的開發經驗,向聽眾提出一套創新的解決流程。
「GitHub Page」混搭「Google App Script」,激盪出的火花你難以想像。在未來萌芽的靈感,就這樣實現吧!
先備知識
任何人,但具備 Web 相關知識會有更豐富的收穫。
SITCON 2020 共筆
SITCON 2020
2020
共筆
R2
歡迎大家來到SITCON 2020 ヽ(✿゚▽゚)ノ
共筆入口:https://hackmd.io/@SITCON/2020
手機版請點選上方 按鈕展開議程列表。
請從這裡開始
使用者訪問縮網址,伺服器回傳Response HTTP code 301 or 302 to redirect
前端:github pages
後端:google app script
Use Javascript to Replace Status code
window.location.herf = {$url}
Q&A 剛時間剩太少,這邊認真回答
Q1: 之前有做過類似概念的系統,但GAS常常會逾時或進冷卻時間,所以request不到資料,想請問是怎麼處理這個問題的?
A1: GAS 會限制每個 Function 的執行時間,如果一個函式執行太久就會直接被切掉了。那這個部分也只能透過切割你要跑的邏輯,因為他只有限制 "每個" 的執行時間(免費帳戶5min、Gsuit 30min),多個的話每個月有上限(但通常撞不到,所以我也沒特地去查。)
冷卻時間的話,測試過後上限大概是3秒一次。
Q2: nodejs or deno?
A2: deno 玩起來還蠻喜歡的,在部分處理 Promise 的程式碼可以寫的更簡潔了~ 不過還沒摸熟所有功能,就不做好壞的評價了
btw, C++ 最棒了 ><
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing