VIRTUAL SCHOOL CBT
Platform Documentation

Virtual School CBT Implementation & Operations Guide

Reference documentation for administrators, examiners, ICT coordinators, and offline lab supervisors.

1. Quickstart: Creating & Publishing Your First Exam

  1. Register an institution at /register or sign in as Teacher/Admin.
  2. Open Examiner Studio → Question Bank to add questions or import via Excel/Word/CSV.
  3. Approve any Pending Review drafts (including AI-generated drafts) before linking to live exams.
  4. Open Exam Builder, select questions, set duration, pass mark, negative marking (if any), and click Save & Publish Live.
  5. Share the Exam Code or open /take for candidates to check in.

2. Excel (.xlsx) & CSV Bulk Question Columns

Download the preformatted Excel template inside the Question Bank tab. Standard columns:

subject | topic | class_level | exam_type | difficulty | question_type | question_text | option_a | option_b | option_c | option_d | correct_answer | marks | explanation

Supported .docx format: numbered questions (1. Question stem), lines prefixed with A.–D., and Answer: A (or exact option text).

3. Offline Local Area Network (LAN) Hall Server Commands

Located in Elite_Institutional_Hub/app/vscbt_sync_bridge.py (uses Python standard library + SQLite):

# 1. Verify HMAC-SHA256 package signature & load exam into local hall SQLite
python vscbt_sync_bridge.py import VSCBT-PKG-XXXX.vscbt.json

# 2. Serve offline CBT exam portal to lab LAN clients at http://<HOST-IP>:8095
python vscbt_sync_bridge.py serve --host 0.0.0.0 --port 8095

# 3A. Auto-push pending results when internet returns
python vscbt_sync_bridge.py sync <EXAM_ID> --cloud-url https://cbt.virtualschool.com.ng

# 3B. Or export signed .vsres.json for manual upload in Institution Admin
python vscbt_sync_bridge.py export <EXAM_ID> --out hall_results.vsres.json

4. Supabase PostgreSQL Setup (Production Scaling)

Run supabase_cbt_ecosystem_migration.sql in your Supabase SQL Editor to provision all 18 CBT ecosystem tables and Row Level Security policies. Until applied, the platform safely persists data in a local server store so testing works out of the box.