BikeControl (SwiftControl)
Use Zwift Click, Zwift Play, Shimano Di2, or any Bluetooth controller with MyWhoosh, Rouvy, Zwift, and more. Free to try on iOS, Android, Windows, and macOS.
Internal sports website for the Faculty of Science and Technology, Phuket Rajabhat University.
AI translation
เว็บไซต์กีฬาสานสัมพันธ์ภายใน คณะวิทยาศาสตร์และเทคโนโลยี มหาวิทยาลัยราชภัฏภูเก็ต
Sports & fitnessJavaScript · CSSGitHub @Esther03uOnlineOwner 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.
Sci Games 2026 — ระบบเว็บไซต์กีฬาสานสัมพันธ์ภายใน คณะวิทยาศาสตร์และเทคโนโลยี มหาวิทยาลัยราชภัฏภูเก็ต (PKRU) เว็บไซต์สำหรับงานกีฬาสานสัมพันธ์ภายใน 9 - 11 ตุลาคม 2569 สร้างด้วย Next.js (App Router), Vanilla CSS (Glassmorphism), และ Supabase (PostgreSQL + Auth + Realtime)Read the full README ↗
เว็บไซต์สำหรับงานกีฬาสานสัมพันธ์ภายใน 9 - 11 ตุลาคม 2569 สร้างด้วย Next.js (App Router), Vanilla CSS (Glassmorphism), และ Supabase (PostgreSQL + Auth + Realtime)
ระบบสาธารณะ (Public Spectators):
matches_public_v2 + RLS ใน migration 007/008/010) หน้าอัปเดตเองทุก 30 วินาทีผ่าน /api/live-summary ที่แคชไว้ที่ edge/handbook): ดาวน์โหลด/พรีวิวไฟล์ PDF ทางการ (public/docs/)/live) — เฉพาะผู้ล็อกอิน: บอร์ดคะแนนสดทุกสนามสำหรับกรรมการ/เจ้าหน้าที่/ผู้ดูแล (Supabase Realtime + ลูกศรแจ้งเมื่อได้แต้ม); ผู้ชมทั่วไปจะถูกส่งไปหน้าเข้าสู่ระบบteam_standings แสดงบนหน้าแรก)/staff/login (เข้าด้วย PIN 6 หลักรายกีฬา หรือบัญชี staff/admin)ระบบผู้ดูแลระบบ (Admin Dashboard):
ระบบเจ้าหน้าที่ลงคะแนนในสนาม (Staff Scoring):
/admin/settings)/admin/pins — เซสชัน 14 ชม.) หรือบัญชี staff/adminlive_scoring_enabled ใน /admin/settings แล้วกรรมการ/เจ้าหน้าที่จะลงคะแนนไม่ได้ทันที (ผู้ดูแลยังแก้ได้)npm install
คัดลอกไฟล์ตัวอย่าง .env.local.example เป็น .env.local:
cp .env.local.example .env.local
ระบุค่าจาก Supabase Project Settings:
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
supabase/ ตามลำดับ: migrations/001_initial_schema.sql → seed.sql (4 ทีมสี, 5 ชนิดกีฬา, สาขา, ช่วงเวลาแข่ง) → migrations/002…010 ทุกไฟล์เป็น idempotent รันซ้ำได้ (007 = view matches_public, 008 = ตัดสิทธิ์ anon อ่านคะแนนสด — รัน 008 หลัง deploy โค้ดที่อ่าน view แล้วเท่านั้น, 010 = คอลัมน์ court + view matches_public_v2 ที่หน้าเว็บใช้)
{ for f in supabase/migrations/001_initial_schema.sql supabase/seed.sql supabase/migrations/00[2-9]_*.sql supabase/migrations/01[0-9]_*.sql; do printf '\n-- >>>>>>>>>> %s\n' "$f"; cat "$f"; done; } > supabase/apply-all.sql
npm run seed:matches (ลอง -- --dry ก่อน)node scripts/create-admin.mjs <email> <password>npm run dev
เปิดเบราว์เซอร์ไปที่: http://localhost:3000
npm run build
npm run start
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYPIN_SESSION_SECRET (สุ่มยาว ๆ ใช้เซ็น cookie ของกรรมการที่ล็อกอินด้วย PIN)| คำสั่ง | ทดสอบอะไร |
|---|---|
npm test | Vitest — helper ล้วน (format, labels, scoring queue, filters, API mappers) |
npm run test:db | รัน migration + seed + scenario ทั้งหมดบน PostgreSQL ในเครื่อง (ต้องมี PGPASSWORD) |
npm run test:smoke | ยิง API จริงผ่าน dev server ที่ :3000 กับ Supabase จริง (สร้าง/ลบข้อมูลทดสอบเอง) |
npm run lint / npm run format:check | ESLint / Prettier ทั้ง repo |
© 2569 สโมสรนักศึกษาคณะวิทยาศาสตร์และเทคโนโลยี มหาวิทยาลัยราชภัฏภูเก็ต