Skip to content

aeecleclair/Fuiz-backend24

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.9%
  • Dockerfile 0.1%