Skip to content

elyohan14/dev_challenges

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workana Hiring challenge

Hi!

I'm Yohan Arias and this is the Planning Poker System, a project in response to challenge from Workana. The app is build using NodeJS, VueJS including their respectives Frameworks (AdonisJS and Quasar). These frameworks let us keep a clean code using best practices.

The Planning Poker System

See demo interface See demo interface

At backend layer we have a NodeJS app:

  • The app has a structure very similar to Laravel (MVC), in this case just Model - Controller.

Backend endpoints implemented

The Rest API has the following endpoints:

GET /issues - Used to show issues.
  • Show all of issues availables.
POST /issue/{:issue}/join - Used to join {:issue}.
  • If issue not exists generate a new one.
  • Must receive a payload with the intended name. ie: {"name": "Yurmira"}
POST /issue/{:issue}/leave - Used to leave {:issue}.
  • When the user wants leave the issue
POST /issue/{:issue}/vote - Used to vote {:issue}. Must receive a payload with the vote value.
  • Reject votes when status of {:issue} is not voting.
  • Reject votes if user not joined {:issue}.
  • Reject votes if user already voted or passed.
GET /issue/{:issue} - Returns the status of issue

During voting status the votes are secret.

  • Issue is voting:
    {
     "status": "voting", 
     "members": [
          {"name": "Yurmira", "status": "voted"}, 
          {"name": "Juan", "status": "waiting"}, 
          {"name": "Yohan", "status": "passed"}
      ]
     }
  • Issue is reveal when all users emitted their votes:
        {
            "status": "reveal", 
            "members": [
                {"name": "Yurmira", "status": "voted", "value": 20}, 
                {"name": "Juan", "status": "voted", "value": 20}, 
                {"name": "Yohan", "status": "passed"}
            ],
           "avg": 20
        }

Realtime

The app updates the issues, voting and participants info in realtime.

Persistence

Redis is used to store the data.

Frontend

The frontend is developed using Vue 2.

It has an interface:

  • Create or join an issue by number
  • Show board with cards for voting
  • Show a list of members and the status of each one
  • Allow users to vote, pass or leave the issue

Get up and running

To run this code you need:

Then:

  • Clone this repo: git clone [email protected]:elyohan14/dev_challenges.git.
  • Run docker-compose up.

Check if services are up and running:

Unit testing

  • Run npm run test on backend_node

About

Response to workana hiring challenge

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 81.2%
  • Vue 15.7%
  • HTML 1.5%
  • Sass 1.2%
  • Shell 0.4%