OpenLiQ is a lightweight, local multiplayer quiz platform. Hosts can create a lobby, players can join with a PIN and nickname, select a quiz, and run through a short quiz while players answer in real time.
This repository contains a .NET backend and a Next.js frontend.
- Host creates a lobby and shares a 6-digit PIN with players
- Players join a lobby using PIN + nickname
- Host selects one of several quizzes
- Real-time gameplay using SignalR: questions, timers, answers
- 4 options per question, 20s timer per question
- Score tracking and final results shown to all players
Prerequisites
- Node.js 18+
- .NET SDK 8+
- Clone the repository
git clone https://github.com/docVoid/OpenLiQ.git
cd OpenLiQ- Backend (API + SignalR hub)
cd backend/OpenLiQ.Api
dotnet restore
dotnet runThe backend runs the SignalR hub at http://localhost:5000.
- Frontend (Next.js)
cd frontend
npm install
npm run devOpen http://localhost:3000 in your browser. Create a lobby as Host, share the PIN with players, let them join via /player/join, pick a quiz and start.
backend/OpenLiQ.Api- .NET Web API + SignalR hub + in-memory game state servicefrontend- Next.js app with Host and Player views and SignalR clientdocs- assets and documentation
- Frontend uses
NEXT_PUBLIC_API_URLto point to the backend SignalR hub, defaults tohttp://localhost:5000. - Backend config in
appsettings.jsonandappsettings.Development.json.
This project is licensed under the MIT License. See the LICENSE
Attribution: OpenLiQ — (c) docVoid
Contributions welcome — open issues or PRs.
