Skip to content

About

這裡是北科課程好朋友,提供使用者以輕鬆的方式查詢與檢視課程資訊!

Topics

Resources

Stars

36 stars

Watchers

1 watching

Forks

Repository files navigation

查北科課程、排課表的可愛網站!選課季救星,希望你今年也搶到想上的課 🙏

開始開發

pnpm install
pnpm dev        # http://localhost:7190
pnpm test
pnpm typecheck
pnpm build      # 輸出到 dist/

資料從哪來

網站本身不爬資料,髒活都交給爬蟲了,課程、學程等資料都由 爬蟲 發布在 GitHub Pages,網站直接讀那裡的 JSON。

想換成別的資料來源,啟動時設定 VITE_API_BASE:

VITE_API_BASE=https://example.com pnpm dev

程式放在哪

位置 內容
src/routes/ 各個頁面
src/components/ 共用元件
src/lib/ 讀取資料與工具函式
src/worker.ts、src/worker/ Cloudflare Worker:分享連結的預覽資訊、預覽圖片、sitemap
static/ 原樣放到網站根目錄的檔案,例如 static/robots.txt 會變成 /robots.txt
docs/ 開發文件與設計原始檔

使用 React、Vite、Tailwind CSS 和 TanStack Router,網站部署在 Cloudflare Workers,設定在 wrangler.jsonc。

課程各欄位的意思與來源,請見 欄位盤點。

About

這裡是北科課程好朋友,提供使用者以輕鬆的方式查詢與檢視課程資訊!

Topics

Resources

Stars

36 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages