Project
CoffeeRun: Coffee Ordering and Delivery for Salons and Cafés on Laravel
CoffeeRun is an Australian Laravel platform where salon clients scan a QR code, order coffee from nearby cafés and get it brought to their chair. I worked on the ordering flow, the Stripe and PayPal checkout, the café dashboard and the admin order screens.

CoffeeRun is an Australian ordering platform that brings coffee from local cafés to people where they already are. Its first home was the salon: a client sitting in the styling chair scans a QR code, sees the cafés nearby, orders a coffee or a snack and pays on their phone. The café makes it and a runner carries it to the chair. Its homepage sums it up as "Get coffee delivered straight to your seat".
Behind that simple idea sits a Laravel application with five sides: the customer's web shop, a dashboard for each café, a portal for each salon, an API for the runners' phone app and a large admin panel. Several developers worked on it over time. I worked on it through 2023, mostly on the ordering flow, the café and admin screens and the forms around them.
This write-up explains how CoffeeRun works and the parts I worked on.
What I worked on
- Ordering flow: the cart, the checkout with Stripe and PayPal, and the emails that follow an order.
- Open cafés first: the café list now reads each café's opening hours for today and puts the open ones on top.
- Order breakdown: the admin order page shows what the customer paid first, then how the money splits between café, salon and platform.
- Café dashboard: the live order list, the open or closed switch and the runner management screen.
- Forms: sign-up, partner applications and the contact form, with clear validation for names and phone numbers.
How CoffeeRun works
Five kinds of users meet on the platform, and each has its own side.
Customers
A customer usually arrives through a QR code on the salon's counter or mirror. The code opens the café list with that salon already chosen, so the platform knows where the order goes. They can also search by café, by item or by a postcode or suburb, with an autocomplete over Australian suburbs and postcodes.
Items come with options. A coffee can have a size, a choice from a list and paid extras. The customer can add a note to each item, use a voucher code and pay with a card or PayPal. They can order as a guest or sign in with an email address, Google or Facebook. Signed-in customers keep their order history in their own account.
Salons
A salon gets a simple portal: its profile, the orders delivered to its clients, a report of what it has earned and a help form. The salon does not have to handle money or coffee. It offers its clients something extra and earns a share of every order made from its chairs.
Cafés
The café dashboard is where the work happens:
- a live list of new and recent orders, with a sound when a new one arrives
- an Open or Closed switch, plus opening hours for each day of the week
- the menu, where each item can be switched off when it runs out
- their own runners: add, edit or remove them
- an earnings chart for today, yesterday, the last 7 days or the last month
- reports, a help form and a link to the runner app
Runners
Runners belong to a café. They use the Delivery Runner app on their phone, which talks to the platform's API. A runner marks themselves available, sees the orders their café has accepted, takes one, picks it up when it is ready and marks it delivered.
The admin team
The admin panel runs the whole network: cafés, salons, customers and runners, the master list of food and drinks with their search keywords, categories, options, voucher codes, orders, reports, partner applications, newsletter subscribers, FAQs, contact messages, help requests and the text of the site's pages. The settings decide how far from a salon a café may be, what share the salons earn, which payment methods are on, and whether ordering is paused with a short message to customers.
From a QR code to the nearest café
Each salon has its own QR code. The platform makes them itself: a PNG with the CoffeeRun logo in the middle and the salon's name in the address. When a customer opens it, the salon is kept in a cookie, so it is still selected at checkout even if they browse around first.
The café list starts from the salon's coordinates. The platform works out a box around them from the search radius in the settings and keeps the cafés inside it. It then checks each café's opening hours for the current day and the current time in Sydney, and sorts the open cafés to the top. A closed café still shows, further down, so a regular can see it is there.
This sorting came from a real need. The network grew one café at a time, and a customer who saw a closed café first could easily think nothing was available.
Live orders without refreshing
A café cannot be expected to keep pressing refresh between customers, so new orders reach the dashboard in real time.
- Pusher: when an order is saved, the platform sends a "new order" event with the IDs of the cafés involved. Each open dashboard checks whether the order is its own, reloads its order list and plays an alert sound. A runner's status change sends a similar event.
- A reminder every 15 seconds: a scheduled command runs every second through Spatie's Short Schedule package. Any order still waiting for the café after 15 seconds triggers a reminder event, and the dashboard plays the sound again until someone accepts it.
- Firebase Cloud Messaging: browser notifications for the café and the customer, and phone notifications for the runners.
- Email and text messages: order emails go through Laravel's queue, so checkout never waits for the mail server. A Twilio text message confirms the order to the customer and tells the café a new one is in.
One cart, several cafés, a fair split
A customer may put items from two cafés in one cart. At checkout the platform splits that cart into one order per café, so each café sees only its own items and each runner carries one bag.
Every item has two prices: what the customer pays and what the café receives. Options have both prices too. A size replaces the item's price, a choice adds its price once, and an extra is multiplied by how many the customer asked for. For each order the platform then works out:
- The café's earning: the sum of the café prices.
- The margin: what the customer paid, minus the café's earning.
- The salon's share: a percentage of that margin, set in the admin settings.
- The platform's earning: what is left.
Voucher codes can take a percentage or a fixed amount off, and they only work between their start and end times. Each voucher also says how much of the discount the café carries, so a café can join a promotion without the platform paying for all of it. After a customer's first order, the platform emails them a code for their next one, once per email address.
The admin order page shows all of this in one place: the customer's details, the salon, each item with its options, instructions, customer price and café price, then the café, salon and platform earnings, the discount and the total.
Payments
Stripe. The card is entered in Stripe's own field. The browser turns it into a one-time token, and only that token reaches the server, which charges the order in Australian dollars.
PayPal. PayPal's buttons take the payment in the browser, and the order is saved with PayPal's transaction ID.
Both can be switched on or off in the admin settings. Every payment is recorded with its method, amount and customer, and the admin team marks the records paid in bulk once the cafés and salons have been settled.
The runner app's API
The runner app uses a small API of its own. A runner signs in with email and password, and the platform gives that phone a token. Signing in again replaces the old token, so one runner has one active session. Each request carries the token, and a runner cannot sign in while their café is switched off.
The order steps follow strict rules:
- A runner who is not available sees no orders and cannot take one.
- Only the runner who took an order can move it forward.
- An order can be picked up only after the café marks it ready, and delivered only after it was picked up.
- At each step the runner's location is saved with the order.
Each step then notifies the customer by push and email, updates the café's dashboard through Pusher and sends the café a browser notification. The café's own screen has rules too: it cannot move an order back to an earlier step, and a cancelled order sends the customer an email and a text message.
Reports
The admin report lists the payments of a chosen date range and exports them as a CSV file: the day, the date, the order number, salon, café, the items, the café price, notes, the transaction ID, the customer's details, the payment method and the time. The file is written on the server, downloaded by the browser and deleted again right after, so no report stays behind. Cafés and salons see their own earnings in their portals.
What I took from this project
A platform like this is three businesses at once. The customer wants speed, the café wants clear orders it cannot miss, and the salon wants something extra for its clients without any work. Most of the value sits in rules nobody sees: who gets which share, which order a café sees first, which status may follow which. Getting those right mattered more than any screen.
Tools used
| Area | Tools |
|---|---|
| Backend | Laravel, PHP, MySQL |
| Frontend | Blade templates, Bootstrap, jQuery |
| Real time | Pusher, Firebase Cloud Messaging |
| Payments | Stripe, PayPal |
| Messages | Laravel queues for email, Twilio SMS |
| Sign-in | Laravel Socialite with Google and Facebook, reCAPTCHA |
| Other | Endroid QR Code, Laravel Excel, Spatie Short Schedule |
Do you have an ordering idea that needs cafés, customers and runners on one platform? Tell me about it.

Comments
No ratings yet
Log in to comment
Only members can comment and rate posts. It is free and takes a minute.
No comments yet. Be the first to share your thoughts.