Alex Bristow

Dealio

A promotions portal for suppliers, buyers and wholesalers, built while I was a supermarket buyer to replace the process I worked in. It's how I got into engineering.

Year
2017–18
Type
Personal project
The process I worked in, as I mapped it before writing any code.

Promotions ran on spreadsheets

In 2017 I was a buyer for a UK supermarket group, negotiating with suppliers, agreeing contracts and launching own-label products. Promotions were one part of the job, and they ran on spreadsheets. Suppliers filled in a template. Buyers and their assistants tidied and checked each one, chased any that hadn't arrived, compiled the approved ones into a master spreadsheet and sent it round the regional wholesalers for comments. Any change started the loop again.

First I mapped the process I was part of. One three-week promotional period took 25 steps and 94 separate spreadsheets. Sixteen of those steps could be fully automated, and across the whole trading team they added up to about 162 hours of work. I built Dealio against that map.

Both sides of the deal

Dealio was one web portal that suppliers, buyers and wholesalers all signed in to, instead of files passed between them. I designed it around the two people the process cost most: the supplier filling in the sheets and the buyer checking them. What each person could see and do depended on their role. Suppliers saw only their own promotions, buyers saw their categories, and each regional wholesaler confirmed or commented on promotions directly. A buyer and a supplier could build a period's plan together, and every planned slot showed whether it had been submitted.

The aim was right first time. A supplier found a product by its barcode, and Dealio filled in the rest from the last time it ran, then checked each figure as it was typed. A cost that had changed since last time had to be confirmed, and a promotional price couldn't be higher than the normal one. Dealio chased missing promotions itself, 30, 14, 7 and 3 days before each deadline, by email and in the app. The master spreadsheet the rest of the business relied on became an export rather than a job someone did by hand.

The hard part was history

Promotions change after they're agreed, and everyone needs to know which version they signed off. So nothing was overwritten. Every edit became a new version that went live only once it was approved, with its author, date and comment kept, and the promotion pointed at whichever version was live. A product's details, like its barcode, case size and pallet layout, were stored once, separately from each run's prices, and every run linked back to the one before. That link made the checks against last time possible.

I learnt React, Redux, Node and MongoDB on Dealio, in the evenings and at weekends while still working as a buyer. I chose React because JSX made sense to me, and kept the server in JavaScript so I was only learning one language. I reworked the schema several times before the versions held together. It was the first software I'd built, and I'd do almost all of it differently now.

StackReact, Redux, Node, Express, MongoDB, Material UI

It changed my direction

Dealio took about a year, from the first map to a working app. I'd done courses before, but building a whole product around a problem I dealt with every day is where software clicked. It got me out of buying and into engineering, and it's still how I like to start: map the work as it really happens, then build the system around it.