LSLeo Souza
Back to projects

Case Study

Salão Islândia Management

Management system sold to a beauty salon

Type
Web
Team
Solo
Next.jsTypeScriptPrismaPostgreSQLiron-sessionResendRechartsZod

Sold as a commercial solution — the source code belongs to the client and is not publicly available.

The problem

The salon tracked appointments, clients and finances in spreadsheets and WhatsApp. The goal was to centralize everything in a single system, with staff-only login and a clear financial overview for management.

Architecture and technical decisions

Full-stack Next.js (App Router) application, with API routes in the same project and Prisma as the ORM on top of PostgreSQL. Authentication uses iron-session — encrypted cookie sessions, with no dependency on an external auth provider. The UI layer is built with Radix UI/shadcn and forms validated with react-hook-form + zod. Appointment notifications and confirmations are sent by email via Resend, and financial reports use Recharts over aggregations computed in the database.

Challenges

Scheduling conflicts

Preventing two clients from being booked at the same time with the same professional. Solved with availability rules validated on the server before the appointment is confirmed.

Secure sessions without an external provider

Since the project didn't justify the cost/complexity of a third-party auth service, I chose iron-session: a signed and encrypted session payload stored in an httpOnly cookie.

Financial reports with date range filters

Generating reports by date range required optimized Prisma aggregations so that everything isn't recalculated on every request.

Impact

Results

  • •System in production, used daily by the salon staff.
  • •Replaced manual spreadsheet tracking with a single flow for appointments, clients and finances.