Poker planning is a method of estimating effort complexity within Agile teams. It focuses on removing biases with a goal of describing team velocity through a small statistical analysis rather than human intuition.
You can read more about this methodology on Wikipedia
So why another app for Poker Planning?
As a team we were searching for an app to do some poker planning and were always stopped by paywalls. This is why we decided to solve the problem ourselves, host it and open-source it.
Quick Start
As mentioned we are hosting this app for free for as long as we can sustain it.
However, if you want to run the app locally follow these 3 steps:
- Make sure you have docker installed
- Open a terminal in the project root and run
./scripts/run.sh. - App should be available at
localhost:3000.
Licence
We create this simple poker planning app as a first step of providing something of value to the community. Anyone you are free to take it and modify to your needs since it's licenced under Apache 2.0.
How to Contribute
We are glad that you are reached this section. Before providing some guidelines on how to contribute, let's go briefly over the tech stack.
Tech stack
The application is a single Go binary. It renders the pages with html/template, serves the stylesheets and scripts from an embedded filesystem, and runs the live room over a websocket. The browser side is hand-written ES modules — no framework, no bundler, no build step.
Everything lives under api/:
| Path | What it holds |
|---|---|
business/ |
the domain: rooms, rounds, the agile scales and the statistics of a revealed round |
web/render/templates/ |
the pages and the partials they share |
web/static/ |
the stylesheets, the ES modules and the images |
web/ |
routing, the page handlers and the websocket endpoint |
The scales and the reveal statistics live on the server, so every client in a room shows the same numbers, formatted the same way.
Running it behind a reverse proxy
The pages and the websocket are served from the same origin, so whatever sits in front of the app has to be able to upgrade a connection. For nginx that means the site's location block needs these three lines alongside the usual proxy_pass:
proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
Without them the app loads and a room renders, but nobody ever appears on the board: the browser's /v1/joinRoom/... request arrives stripped of its upgrade tokens and the server rejects it.
Any PR that suggests improvements in code quality and stability of the product is always appreciated.
Contribution guidelines
Requirements
In case you are working with windows, we suggest working inside a Windows Subsystem Linux environment (WSL). On how to install wsl read more here.
To spin up the stack you need:
- Go installed on your machine. Minimun version v1.20.2
- Install make if not already included in your system.
- Docker, to run the end to end tests. Node.js is only needed for those, and only inside the container.
cd api && make run starts the app on localhost:8080. There is nothing to build first: the templates and the static files are embedded into the binary, so re-running that one command picks up an edit to a template, a stylesheet or a script.
Inside the scripts folder there is a bunch of conveniece scripts, to help you test your changes before you create your Pull Request. The main one is test-all.sh We highly suggest you do so.
Privacy and Open Source
We undestand that when planning information might include sensitive data from a company perspective. For this reason we decided:
- To create an stateless app with no database. Everything is persisted in memory and lost when a room closes.
- We don't ask you of any names, either room names or task names. We trust that you do this work yourself.
- We also decided to open source our app under Apache Licence so that you have the option for you to self-host it and extend it/modify it to fit your needs.
So if you are a privacy freak like us, you can host this yourself. If not, we guarantee that we use exactly as much data as the app need to provide its features.
Licence
George Spanos does not claim any ownership on the idea of Agile Planning Poker. As mentioned in the planningpoker.com, the idea was popularized by Mike Cohn, Founding Member and Owner of Mountain Goat Software.
George Spanos only aims to provide an open source and free solution to teams that want to use this method to do planning. The software is licenced under Apache Licence, Version 2.0