All notes

From Idea to Complete Barbershop Booking App: JF Cuts

· 4 min

From Idea to Complete Barbershop Booking App: JF Cuts

One of the projects I've learned the most from is JF Cuts, a complete web application for booking and managing appointments at a barbershop.

The goal wasn't just to build a simple appointment calendar. I wanted to build a system where both the customer and the barber have their own environment, and where the key business processes of a barbershop can be handled digitally.

The idea

At many small businesses, appointments are still arranged via WhatsApp, Instagram or by phone. This can quickly become messy when several requests come in at the same time.

With JF Cuts, I wanted to create a solution where customers can schedule an appointment on their own. The customer goes through a simple flow:

Service → Date → Time → Confirm

After logging in, the customer gets a dashboard showing, among other things, their next appointment and previous visits.

The barber, on the other hand, gets a separate dashboard for managing appointments, customers, services and availability.

The booking engine

One of the most interesting parts of the project was developing the appointment logic. A time slot shouldn't be bookable just because it looks available on screen. The backend has to verify that the slot can actually be booked.

Among other things, it checks:

  • Opening hours
  • Exception days
  • Service duration
  • Existing appointments
  • Double bookings
  • Maximum booking period
  • Cancellation deadline
  • Rescheduling deadline

Say a barber is open from 10:00 to 18:00 and a haircut takes 30 minutes. Then the last appointment can start at 17:30. For a 60-minute service, 17:30 is of course no longer possible. These checks are performed server-side. As a result, a user can't simply send a modified request to book a time slot that is already taken.

Availability

The barber can set a regular weekly schedule, for example with different opening hours per day. The system also supports exceptions. This allows a specific Friday to have different opening hours or to be closed entirely.

The logic works as follows:

Check whether an exception exists for the selected date. If so, use that availability. If not, use the regular weekly schedule. Generate time slots based on the configured interval. Check whether the selected service fits within the available hours. Remove time slots that overlap with existing appointments. Only show the times that are actually available. This way, a customer only sees times at which the appointment can really take place.

Different roles

JF Cuts has two user roles: customer and barber.

A customer can only view and modify their own appointments. A barber has broader permissions and can manage appointments for existing customers.

This helped me think more carefully about authorization. Hiding certain buttons in the interface isn't enough. The backend has to verify every action again. A customer must never be able to modify another customer's appointment through a manipulated request.

Tracking revenue

Besides managing appointments, I also wanted to include a small part of the business administration. When an appointment is completed, the barber can enter the amount actually received. This is deliberately not always the same as the standard price of the service. If a service normally costs €20 but €18 is ultimately paid, €18 is recorded as the amount received.

Revenue can then be viewed per:

  • Week
  • Month
  • Year

Only completed appointments are counted.

Database and the future

When designing the database, I tried to look beyond just the first version of the project. JF Cuts is initially intended for a single barbershop, but the database is prepared for a future expansion to multiple shops. That's why shop-related data is linked to a barbershop_id.

In the future, the same system could therefore support multiple shops:

JF Cuts → Fresh Cuts → Barber Studio

without having to rebuild the entire application.

Technology

For this project I mainly worked with:

Laravel · PHP · MySQL · Blade · Livewire · Tailwind CSS · Git

I deliberately chose not to use a separate frontend such as React or Vue. For this type of application, Laravel combined with Blade and Livewire offers enough possibilities tobuild interactive dashboards and forms, while keeping the architecture relatively simple.

What I learned

JF Cuts mainly taught me to think beyond the interface.

At first glance, a booking system seems simple: just a form with a date and time. In reality, there are many rules behind it.

As a result, I gained more experience with:

  • Database relationships
  • Laravel services
  • Authorization and policies
  • Server-side validation
  • Livewire components
  • Availability logic
  • Race conditions and double bookings
  • Status management
  • Revenue calculations
  • Responsive and mobile-first interfaces
  • Automated testing

Separating the business logic from the controllers was especially important to me. Complex appointment logic shouldn't all end up in a single controller, so I used dedicated services for it.

From project to platform

JF Cuts started as an idea for a simple barbershop website but grew into a much more complete system.

The ultimate goal wasn't just to build a nice interface, but to build an application that is also reliable behind the scenes.

That is one of the most important lessons I took from this project: a good web application isn't just about how it looks, but above all about how reliable the underlying logic is.

JF Cuts gives me a foundation to keep building on, toward a full platform for multiple barbershops.

All notes

Terminal

Welcome to amirs.life. Type help for all commands.