Margin Machine

A company simulation in which teams learn to optimise the margin per product.

Client
Coca-Cola
Our part
Front end, back end and real-time sync
Stack
Vue.js, TypeScript, Laravel
The start screen of Margin Machine.

The challenge

A team plays on many devices at once, and every device must show the same company at the same moment.

Our solution

The Vue 3 app sends each action to a Laravel back end, and Laravel Echo pushes the result to every device of the team.

Company simulation

Players optimise the margin per product in a simulated company. Laravel Echo keeps all devices of a team in sync.

Manage stock

Stock management is one of the tasks of the players. The Vue 3 single-page app collects the data and sends it to a Laravel back end.

Develop promotion plans

Players make promotion plans to increase sales, and with that the margin per product.

Messages

Players send messages to each other to plan tasks and share knowledge.

Dashboards

Dashboards show the data that the game collects. We made the charts with Chart.js.

Stack

  • Vue.js
  • TypeScript
  • Laravel
  • WebSockets
  • Vue Router
  • Vite
  • Vitest
  • PostCSS
  • Laravel Forge