ESP32-S3 Bench Guide
ESP32-S3 N16R8 bench guide: live pinout, lessons, simulators and the bench log.
STEM Fun Day Timer
Translation pending
EducationHTML · JavaScriptGitHub @Yoasb-kwokOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
Helper 用同一網址、活動代碼及共用密碼加入。計時、隊名、比分和排名寫入 Postgres,其他裝置約每 1.5 秒輪詢更新。畫面仍是傳統中文。 這個版本不再使用 Supabase。瀏覽器只呼叫同一個網域的 /api/...。 本機可複製 .env.example。Vercel 專案 fun-day-timer 的 Production 必須設定 DATABASE_URL(合併前或合併後都可以,未設定時登入頁會顯示尚未設定資料庫)。 db/schema.sql 是純 Postgres schema(lib/schema.sql 是同一份,給 serverless 函式讀取)。API 冷啟動時會自動執行,使用 CREATE TABLE IF NOT EXISTS,不需要另外跑 migration。 沒有 Supabase Auth、RLS 或 Realtime。Helper 密碼核對成功後,伺服器設定 HttpOnly cookie。 需要 Node.js 20+ 和一個空的 Postgres 資料庫。 1. 活動代碼用 3–20 位英文字母、數字或 -。 2. Helper 密碼最少 4 個字元。 3. 按「建立新活動」。 4. 另一部瀏覽器或無痕視窗用同一代碼和密碼按「加入活動」。 建立活動時會產生 13 組、電動組與手動組耐力名單,以及各 9 輪格鬥賽程。Read the full README ↗
Helper 用同一網址、活動代碼及共用密碼加入。計時、隊名、比分和排名寫入 Postgres,其他裝置約每 1.5 秒輪詢更新。畫面仍是傳統中文。
這個版本不再使用 Supabase。瀏覽器只呼叫同一個網域的 /api/...。
| 變數 | 必要性 | 說明 |
|---|---|---|
DATABASE_URL | 必填 | Postgres 連線字串。正式環境用 Railway Postgres 的公開網址,讓 Vercel 連得到。不要把真實密碼提交到 git。 |
SESSION_SECRET | 可選 | 簽署 Helper session cookie。不設時會由 DATABASE_URL 衍生,同一資料庫的所有 instance 可以共用 cookie。 |
本機可複製 .env.example。Vercel 專案 fun-day-timer 的 Production 必須設定 DATABASE_URL(合併前或合併後都可以,未設定時登入頁會顯示尚未設定資料庫)。
db/schema.sql 是純 Postgres schema(lib/schema.sql 是同一份,給 serverless 函式讀取)。API 冷啟動時會自動執行,使用 CREATE TABLE IF NOT EXISTS,不需要另外跑 migration。
events:活動代碼、名稱、學校、密碼雜湊(scrypt)、格鬥輪次、結算時間battle_teams:組別endurance_entries:電動組/手動組耐力計時與最佳時間battle_matches:單循環對賽、盤數、2 分鐘計時沒有 Supabase Auth、RLS 或 Realtime。Helper 密碼核對成功後,伺服器設定 HttpOnly cookie。
需要 Node.js 20+ 和一個空的 Postgres 資料庫。
npm install
export DATABASE_URL=postgres://fun_day:[email protected]:5432/fun_day_test
export SESSION_SECRET=local-dev-secret
npm start
開啟 http://127.0.0.1:3000:
-。建立活動時會產生 13 組、電動組與手動組耐力名單,以及各 9 輪格鬥賽程。
自動測試:
npm test
測試會自行建表。請指到一個可以清空的資料庫,因為測試會 TRUNCATE events。
專案已經以 fun-day-timer 部署。保持:
Other./api 是 Vercel serverless function,靜態頁面仍是根目錄的 index.html。
CI/CD 或 Vercel 專案設定要做的事:
DATABASE_URL。SESSION_SECRET。更新程式不會清掉資料庫裡的賽事紀錄。