尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Eduverse
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Nền tảng học Khoa học Tự nhiên (KHTN) lớp 6-9 dạng thành phố pixel-art. Học sinh khám phá thành phố, vào các địa điểm để học bài, làm bài tập, chơi game ôn tập và nhận huy hiệu.
# Node 24 LTS (nếu cài tại ~/.local/node)
export PATH="$HOME/.local/node/bin:$PATH"
# Clone & cài đặt
git clone https://github.com/TangXuanTuyen/Eduverse.git
cd Eduverse
npm install
# Tạo file biến môi trường
cp .env.example .env.local
# Sửa .env.local: thêm Supabase URL, anon key, service role key, Gemini API key
| Biến | Mô tả | Bắt buộc |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL | URL project Supabase | ✅ |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Anon key (công khai) | ✅ |
SUPABASE_SERVICE_ROLE_KEY | Service role key (chỉ server) | ✅ |
SUPABASE_DB_URL | Database URL (cho migration) | ✅ |
GEMINI_API_KEY | Google Gemini API key (chỉ server) | Cho AI |
⚠️
SUPABASE_SERVICE_ROLE_KEYvàGEMINI_API_KEYKHÔNG BAO GIỜ có tiền tốNEXT_PUBLIC_.
npm run dev # http://localhost:3000
npm run build # Build production
npm run typecheck # Kiểm tra TypeScript
npm test # Vitest unit tests (132 tests)
npm run db:push # Đẩy migration lên Supabase (cần SUPABASE_DB_URL)
npm run seed # Tạo dữ liệu giả (2 GV, 10 HS, 39 câu hỏi, 3 bài giao...)
Seed tạo:
.seed-credentials.local.md sau khi chạyapp/
(auth)/ # Đăng nhập, onboarding
student/(city)/ # Khu vực học sinh (bản đồ thành phố)
library/ # Thư viện học trực quan
arcade/ # Arcade (Thử thách nhanh, Đấu trùm)
review/ # Trạm sửa lỗi
stem/ # Phòng thí nghiệm STEM
assignments/ # Bài giao
achievements/ # Thành tích
tutor/ # AI Tutor (trang đầy đủ)
teacher/ # Khu vực giáo viên
parent/ # Khu vực phụ huynh
api/ # API routes
components/
city/ # Bản đồ, HUD, điều khiển
character/ # Chọn & tuỳ chỉnh nhân vật
companion/ # Chatbot Vina (áo dài pixel-art)
games/ # Boss Battle, Drag-drop Lab
learning/ # Modal học tập
tutor/ # Chat AI Tutor
ui/ # DialogFrame, BreakReminder, AnswerMark
game/engine/ # Va chạm, tìm đường, dữ liệu bản đồ
lib/
ai/ # Provider, safety, system prompts
auth/ # Session, roles, identifier
supabase/ # Client, admin, proxy
services/ # Logic server: XP, grading, AI tutor, reports
supabase/migrations/ # 14 migration files
tests/
unit/ # Vitest: grading, XP, safety, auth
db/ # RLS tests (PGlite)
| Vai trò | Mô tả |
|---|---|
admin | Quản trị hệ thống |
teacher | Giáo viên: tạo phòng, câu hỏi, bài giao, xem báo cáo |
student | Học sinh: học bài, làm bài, chơi game, hỏi AI |
parent | Phụ huynh: xem báo cáo con em |
Quyền đọc từ public.profiles (server), KHÔNG từ metadata người dùng. Mọi ghi đi qua service role.
question_answersanon không có quyền trên bất kỳ bảng/hàm nàoauthenticated chỉ SELECT hàng của mìnhnpm run db:push để áp dụng migration mớinpm run seed để tạo dữ liệu demo