Skip to content

aleksandersh/planning-poker-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Planning poker server application

API

create a room
POST /v1/rooms
<- { "room_id": "" }

create a player (the first player will be room owner)
POST /v1/rooms/<room_id>/players
-> { "name": "" }
<- { "access_token": "" }

get the room state
authorized
GET /v1/rooms/<room_id>

delete the room
authorized (owner)
DELETE /v1/rooms/<room_id>

create a next game
authorized (owner)
POST /v1/rooms/<room_id>/games
-> { "name": ""}

update the current game (change name, complete, reset)
authorized (owner)
PATCH /v1/rooms/<room_id>/currentgame
-> { "name": "", "complete": false, "reset": false }

post the current game card
authorized
PUT /v1/rooms/<room_id>/currentgame/cards
-> { "score": 0 }

Client flow

Room owner flow

  1. create a room
  2. add a player to the room and save , the first player will be room owner
  3. observe the room state
  4. post cards
  5. switch games
  6. update the current game

Room player flow

  1. add player to the existing room
  2. observe the room state
  3. post cards

Launch

The simpliest way to run and test application is using docker and sample scripts for API

Usage

docker build -t planning-poker-app .
docker run -dp 3000:8080 planning-poker-app
cd ./scripts
export POKER_HOST=localhost:3000
create_room.sh
export POKER_ROOM="<room_id>"
create_player.sh
export POKER_SESSION="<access_token>"
get_room.sh
...

Environment variables

  • POKER_PORT (required) - port of application
  • POKER_MODE (optional) - debug enables additional logs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published