Skip to content

fuiz/game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

61861c9 · Mar 1, 2025
Mar 1, 2025
Apr 5, 2024
Mar 1, 2025
Feb 7, 2025
Jul 20, 2023
Aug 5, 2024
Jul 6, 2024

Repository files navigation

Fuiz

Host live quizzes freely

Switcheroo icon

License

Developing

This is the backend component. It can be run with:

cargo run

This will open a server listening to port 8080.

Creating a game

POST /add
Parameter Type Description
config FuizConfig Required. Config as defined in src/game_manager/fuiz/config.rs
options FuizOptions Required. Options as defined in src/game_manager/game.rs

Response

{
  "game_id"    : string,
  "watcher_id" : string
}

Checking if game is alive

GET /alive/:gameid

Response

true | false;

Joining a game (using WS protocol)

GET /watch/:gameid

This establishes a websocket connection. #TODO: documenting websocket messages.

Status

While you could host this yourself, a live version exists on api.fuiz.us. Its status can be checked on: status.fuiz.us.