La Ceiba
Online ordering for a bakery in Puerto Rico, where customers build a pickup order, pay with Stripe and get an email, all within ordering hours.



- Role
- Full-stack engineer
- Year
- 2024 to 2026
- Stack
- Nuxt 4
- Vue 3
- TypeScript
- Tailwind CSS
- Pinia
- Stripe
- Supabase
- Resend
- Live site
- laceibapr.com(opens in a new tab)
- Built through
- Kega Software(opens in a new tab)
La Ceiba is a bakery in Puerto Rico that also serves breakfast, lunch and dinner. Its site, in Spanish, is where customers read the menu and order ahead: they build an order, pick a day and time to collect it, pay online and get a confirmation email, and the bakery gets the order by email at the same moment. The site also has the menu as a PDF, a photo gallery, the bakery's story, catering, answers to common questions and a contact form.
What I built
I started the project in late 2024 and have built and run it since: the ordering hours, the edge functions and emails, the menu pages, the rules that match and price the cart's lines, the tests, and the move to Nuxt 4, Tailwind CSS 4 and shadcn-vue components.
How it is built
The menu has several kinds of item. A pastry is just a price; a coffee has a temperature, a size, a flavor and a milk; a tray of croquettes is split across flavors, unit by unit; a sandwich can leave ingredients out or swap its bread.
The site is Nuxt 4 with TypeScript, on Netlify. The public pages are prerendered; checkout and the confirmation page are rendered on the server. The interface uses Tailwind CSS and shadcn-vue components on Reka UI, and the cart is a Pinia store kept in the browser's local storage.
Payments use Stripe's Payment Element. A Nitro server route creates the payment intent, and when the customer reloads or changes the cart it updates the same intent instead of creating another. Once Stripe confirms the payment, the order and the customer are saved in Supabase's Postgres, and a Supabase edge function sends two emails through Resend: the confirmation to the customer and the order to the bakery. Two more edge functions handle the contact form and tell the site the time in Puerto Rico.
The hard parts
The bakery takes orders on weekdays during set hours, Puerto Rico time, and not on holidays. A customer's phone can be in another time zone or have the wrong clock, so the site checks twice: a quick check of the browser's clock converted to Puerto Rico time, then the time from an edge function, cached for an hour. Outside those hours a route guard keeps checkout closed and the menu stops adding items, and an open tab checks again every minute and whenever it comes back into focus, so the site notices closing time even if nobody reloads. Some items need hours or days of notice, so the pickup date and time pickers only offer times the whole cart can be ready by.
Adding the same item twice should raise its quantity, but a coffee with one milk is not the same line as the same coffee with another. Each kind of item has a matcher that compares only the choices that define it. The matchers, the prices and the schedule rules are covered by unit tests in Vitest.
A payment is not an order until the order is saved. The payment is confirmed in the browser through Stripe, and the order is written to Supabase right after. If that write fails, the checkout keeps the paid order and lets the customer try the save again without paying a second time.
The cart used to live in a cookie. A cookie travels with every request, and the browser drops one past 4 KB without a word, so a large order could empty itself. The cart now lives in local storage, and the old cookie is deleted the first time a returning customer loads the site.
Stack
Nuxt 4, Vue 3 and TypeScript, with Tailwind CSS and shadcn-vue. Pinia for the cart. Stripe for payments. Supabase for Postgres and three Deno edge functions, with Resend for email. date-fns for the time zone, jsPDF for the menu PDF, Vitest for the tests and Netlify for hosting.
- StorefrontNuxt 4, Pinia cart
- StripePayment intents
- SupabaseOrders, emails by Resend
Screens
Next projectAmerican Hauler Trucking
The website of a South Florida sand and gravel hauler, rebuilt in Nuxt, and a prototype dispatch portal for the office and the drivers on demo data.



