π update README with new pages, features, and bun setup
Browse files at this commitdf62abe4733503fac2dea1b239dad87610b43171Parent: e37d078- docs
- π update README with new pages, features, and bun setup
1 changed file +51 -17
- README.md +51 -17
README.mdmodified+51 -17
| @@ -6,33 +6,35 @@ SolidJS + TypeScript frontend for the Hezarfen REST API. | |||
| 6 | 6 | ||
| 7 | - **SolidJS** + Vite | 7 | - **SolidJS** + Vite |
| 8 | - **TanStack Router** (code-based route tree, lazy pages) | 8 | - **TanStack Router** (code-based route tree, lazy pages) |
| 9 | -- **shadcn-solid style UI** (Kobalte Button + Tailwind primitives) | 9 | +- **Kobalte + Tailwind CSS** UI primitives (shadcn-solid style) |
| 10 | - Session cookie auth via Vite dev proxy (same-origin) | 10 | - Session cookie auth via Vite dev proxy (same-origin) |
| 11 | +- **bun** package manager | ||
| 12 | +- i18n with EN/TR locale switching | ||
| 11 | 13 | ||
| 12 | ## Prerequisites | 14 | ## Prerequisites |
| 13 | 15 | ||
| 14 | -- Node.js 20+ | 16 | +- Node.js 20+ (or bun) |
| 15 | - Hezarfen backend running at `http://127.0.0.1:8080` | 17 | - Hezarfen backend running at `http://127.0.0.1:8080` |
| 16 | 18 | ||
| 17 | ## Setup | 19 | ## Setup |
| 18 | 20 | ||
| 19 | ```bash | 21 | ```bash |
| 20 | -npm install | 22 | +bun install |
| 21 | -npm run dev | 23 | +bun run dev |
| 22 | ``` | 24 | ``` |
| 23 | 25 | ||
| 24 | Open [http://localhost:5173](http://localhost:5173). | 26 | Open [http://localhost:5173](http://localhost:5173). |
| 25 | 27 | ||
| 26 | -The Vite server proxies `/auth`, `/users`, `/notes`, `/events`, `/exams`, and `/health` to the backend so the HttpOnly session cookie stays same-origin. | 28 | +The Vite server proxies `/auth`, `/users`, `/notes`, `/events`, `/exams`, `/exam-room`, `/time`, and `/health` to the backend so the HttpOnly session cookie stays same-origin. |
| 27 | 29 | ||
| 28 | ## Scripts | 30 | ## Scripts |
| 29 | 31 | ||
| 30 | | Command | Description | | 32 | | Command | Description | |
| 31 | |---|---| | 33 | |---|---| |
| 32 | -| `npm run dev` | Start Vite dev server | | 34 | +| `bun run dev` | Start Vite dev server | |
| 33 | -| `npm run build` | Typecheck + production build | | 35 | +| `bun run build` | Typecheck + production build | |
| 34 | -| `npm run preview` | Preview production build | | 36 | +| `bun run preview` | Preview production build | |
| 35 | -| `npm run check` | Typecheck only | | 37 | +| `bun run check` | Typecheck only | |
| 36 | 38 | ||
| 37 | ## Roles | 39 | ## Roles |
| 38 | 40 | ||
| @@ -40,11 +42,43 @@ The Vite server proxies `/auth`, `/users`, `/notes`, `/events`, `/exams`, and `/ | |||
| 40 | 42 | ||
| 41 | ## Pages | 43 | ## Pages |
| 42 | 44 | ||
| 43 | -| Path | Access | | 45 | +| Path | Access | Description | |
| 44 | -|---|---| | 46 | +|---|---|---| |
| 45 | -| `/login`, `/register` | Guests | | 47 | +| `/login`, `/register` | Guests | Authentication | |
| 46 | -| `/` | Authenticated | | 48 | +| `/` | Authenticated | Dashboard with widgets | |
| 47 | -| `/notes` | Student+ | | 49 | +| `/profile` | Authenticated | Edit personal info (name, email, phone, birth date) | |
| 48 | -| `/events`, `/events/:id` | Student+ (create/edit: teacher+) | | 50 | +| `/notes` | Student+ | Personal notes CRUD | |
| 49 | -| `/exams`, `/exams/:id` | Student+ (create/grade: teacher+) | | 51 | +| `/events`, `/events/:id` | Student+ | Event list & detail (create/edit: teacher+) | |
| 50 | -| `/admin/users` | Admin | | 52 | +| `/exams` | Student+ | Exam list grouped by course (accordion) | |
| 53 | +| `/exams/:id` | Student+ | Exam detail, questions, grading, statistics (teacher+) | | ||
| 54 | +| `/exams/:id/live` | Teacher+ | Live monitor / final state roster with pagination & sorting | | ||
| 55 | +| `/exam-room/:id` | Student+ | WebSocket-based real-time exam room (auto-save, timer, expiry) | | ||
| 56 | +| `/courses` | Student+ | Course list & exam creation (teacher+) | | ||
| 57 | +| `/guide` | Authenticated | App usage guide | | ||
| 58 | +| `/admin/users` | Admin | User management | | ||
| 59 | + | ||
| 60 | +## Features | ||
| 61 | + | ||
| 62 | +- **Exam lifecycle**: create (scheduled/async/unscheduled), questions (multiple-choice / text), real-time WebSocket exam room, auto-submit on expiry, teacher grading | ||
| 63 | +- **Live monitor**: 2-second polling during active exams, static final state view after exam ends, pagination (10/page), column sorting | ||
| 64 | +- **Statistics**: graded count, average/min/max marks on exam detail | ||
| 65 | +- **Answer sheet**: teacher review of student answers with correct/wrong highlighting | ||
| 66 | +- **Profile editing**: update display name, email, phone, birth date | ||
| 67 | +- **i18n**: full Turkish / English interface | ||
| 68 | + | ||
| 69 | +## Project Structure | ||
| 70 | + | ||
| 71 | +``` | ||
| 72 | +src/ | ||
| 73 | +βββ api/ # API client, types, endpoint functions | ||
| 74 | +βββ components/ # Reusable UI components | ||
| 75 | +β βββ exams/ # Exam card, form, questions panel, answer sheet, WS room | ||
| 76 | +β βββ layout/ # Side nav, page header, role guards | ||
| 77 | +β βββ ui/ # Design system (Button, Badge, Table, Input, etc.) | ||
| 78 | +β βββ users/ # Profile form, user table | ||
| 79 | +βββ i18n/ # Message keys + EN/TR dictionaries | ||
| 80 | +βββ lib/ # Utilities (format, cn, roles, exam-labels) | ||
| 81 | +βββ pages/ # Route-level page components | ||
| 82 | +βββ routes/ # TanStack Router tree | ||
| 83 | +βββ stores/ # Auth, preferences (locale, theme) contexts | ||
| 84 | +``` | ||