DEV Community

Cover image for How I built an e-commerce a neighborhood bakery runs by itself (Next.js, loyalty points and a lot of motion)
Franco kaddour
Franco kaddour

Posted on AI-assisted

How I built an e-commerce a neighborhood bakery runs by itself (Next.js, loyalty points and a lot of motion)

La Básica is a small bakery in Saavedra, a neighborhood in Buenos Aires. It had a storefront, loyal customers and a full display case, but no digital channel at all: orders came in over WhatsApp or at the counter, there was no online catalog, no visible prices, and loyalty lived in a paper notebook.

The owner wanted to sell online without depending on anyone to run it. That sentence shaped every decision in the project.

La Básica in production

What I built

  • A full online store: storefront, catalog, cart and checkout with in-store pickup.
  • A loyalty points system: every purchase adds up, and points are redeemable for products and discounts.
  • An admin panel for products, orders, categories and email marketing.
  • Motion design as part of the identity: a brand loader, marquees and micro-interactions in every section.
  • 16 local-SEO pages (per product and per area).
  • Production-grade basics: CSP with nonces, rate limiting, transactional emails and CI/CD.

Four decisions worth explaining

1. Why so much motion on a bakery?

Because personality is the one thing a neighborhood shop has that big apps can't copy. Every animation runs on the browser's compositor (only transform and opacity), and I checked them on WebKit so the experience holds up on a mid-range iPhone, not just on my desktop.

2. Why in-store pickup and bank transfer, with no payment gateway?

This was a business decision, not a technical one. Gateway fees eat the margin of a croissant. The checkout confirms the order and only then shows the payment details. Less friction, zero commission, and the owner validates each transfer from the panel.

Checkout with in-store pickup

3. Why a custom points system?

People come back to a bakery every week. A tailor-made system (points per purchase, rewards the business defines) turns that habit into an incentive. A generic coupon can't do that.

Loyalty points

4. Why serious security and SEO for a small business?

Because the site handles customer data and money. Strict CSP, rate limiting and validation on every endpoint are what let the owner trust her operation to it. And the local pages with structured data are what make "bakery in Saavedra" mean La Básica.

Result

La Básica went from the counter and WhatsApp to an online store run by the owner herself: a live catalog, orders with coordinated pickup, customers earning points.

"At last I have the digital presence I was missing — it's really polished, and I'm very happy with the design and performance of the site." — Flor, owner

It's a small project, but it taught me that the most important feature is often the one the client can operate on her own.

Stack: Next.js, React, TypeScript.

Thanks for reading! Happy to answer questions about any of these decisions in the comments.

Top comments (0)