TutorLoom
The learning platform for companies, colleges and training institutes. Free and open source, with an Enterprise edition.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Study platform for Computer Science students of the Faculty of Science, Lebanese University (Hadath).
See CLAUDE.md for product context, scope and engineering rules.
See docs/dependencies.md for what each dependency is and why the project has it.
cp .env.example .env
docker compose up -d --wait # Postgres on localhost:5432
npm install
npm run db:migrate
npm run dev # http://localhost:3000
Check it works: open http://localhost:3000 and http://localhost:3000/api/health
(expects {"status":"ok","database":"up"}).
npm run lint
npm run typecheck
npm test # unit tests (Vitest)
npm run test:e2e # browser smoke tests (Playwright); needs the database running
First time only: npx playwright install chromium.
npm run db:migration:create -- add-courses # new file in db/migrations
npm run db:migrate
npm run db:migrate:undo # reverts the last migration
npm run db:migrate:status
Every schema change is a migration. Migrations are plain CommonJS files in db/migrations,
and each must implement a working down. Set DATABASE_SSL=true for hosted databases such as Neon.
Create a separate, gitignored file .env.neon next to .env, once, with two lines:
DATABASE_URL=<Neon direct connection string, not the "-pooler" one>
DATABASE_SSL=true
Then look first, and migrate:
npm run db:migrate:status:neon
npm run db:migrate:neon
These scripts read only .env.neon, never .env, and fail immediately if the file is missing.
.env.production or .env.local: Next.js loads those automatically.export DATABASE_URL in your terminal. A variable already set in the shell takes
precedence over any env file, so both the local and the Neon scripts would use it.npm run db:seed # runs all seeders; safe to run repeatedly
npm run db:seed:undo # removes what the seeders created
SEED_DEMO_DATA=true (in .env) enables the fake demo courses, resources and demo student
([email protected]). Local development only; never set it in production..storage locally, or into the R2 bucket when STORAGE_DRIVER=r2. npm run db:seed:undo
deletes them again. Needs Node 22.18+. Set STORAGE_DRIVER=local to keep seeding off R2.ADMIN_EMAIL and ADMIN_PASSWORD (12+ characters)
when running npm run db:seed. Running it again with the same email updates the password.npm test needs Docker Postgres running (docker compose up -d --wait). It uses a separate
database (TEST_DATABASE_URL, name must end in _test), created and migrated automatically,
so development data is never touched.
All configuration comes from environment variables, validated at startup in src/lib/env.ts.
See .env.example. Never commit .env.