<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Angel Dos Santos</title>
    <description>The latest articles on DEV Community by Angel Dos Santos (@angel_dossantos_69f9d984).</description>
    <link>https://dev.to/angel_dossantos_69f9d984</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4173840%2F7d37d844-fb79-45d3-989a-778155ea212b.png</url>
      <title>DEV Community: Angel Dos Santos</title>
      <link>https://dev.to/angel_dossantos_69f9d984</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/angel_dossantos_69f9d984"/>
    <language>en</language>
    <item>
      <title>How I Built a White-Label Food Delivery Platform with AI Assistance (and What I Learned)</title>
      <dc:creator>Angel Dos Santos</dc:creator>
      <pubDate>Fri, 09 Oct 2026 16:37:26 +0000</pubDate>
      <link>https://dev.to/angel_dossantos_69f9d984/how-i-built-a-white-label-food-delivery-platform-with-ai-assistance-and-what-i-learned-2c4i</link>
      <guid>https://dev.to/angel_dossantos_69f9d984/how-i-built-a-white-label-food-delivery-platform-with-ai-assistance-and-what-i-learned-2c4i</guid>
      <description>&lt;p&gt;I'm Angel Dos Santos, an independent developer (Nexoweb) based in Albacete, Spain. I built a white-label food delivery platform with the help of an AI coding assistant, Claude Code, and I reviewed the code myself. This post covers why I built it, how it's put together, how the AI collaboration went, and what is &lt;em&gt;not&lt;/em&gt; finished.&lt;/p&gt;

&lt;p&gt;One thing up front: it has no users and no revenue. It's a complete codebase, not a running business.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;Food delivery is a problem with plenty of moving parts: customers, restaurants, orders, payments, maps and several client apps. That makes it a good test of whether one developer plus an AI assistant can produce something coherent and well tested across a full stack.&lt;/p&gt;

&lt;p&gt;I wanted a white-label base: a platform where the brand can change and several businesses can share one backend safely.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture and technical decisions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Backend.&lt;/strong&gt; The API is NestJS with TypeScript, on PostgreSQL with PostGIS for location queries. The admin panel is Next.js.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multi-tenancy with row-level security.&lt;/strong&gt; Isolation between tenants is enforced in the database, not only in application code. PostgreSQL row-level security (RLS) policies decide which rows each tenant can see. The project has 14 migrations and 90 RLS policies. I chose RLS because a forgotten &lt;code&gt;WHERE tenant_id = ...&lt;/code&gt; in the app layer can leak data across tenants, while a policy in the database still applies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;API-first with OpenAPI 3.1.&lt;/strong&gt; The API is described in an OpenAPI 3.1 spec with 43 operations, and the clients are generated from it. A single contract keeps the backend, the admin panel and the mobile apps in step.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Clients.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An Android app in Kotlin with Jetpack Compose.&lt;/li&gt;
&lt;li&gt;iOS business logic in Swift. There are no SwiftUI screens (more on that below).&lt;/li&gt;
&lt;li&gt;The Next.js admin panel.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Payments.&lt;/strong&gt; Stripe is integrated in test mode only. Stripe Connect is not implemented.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tests and CI.&lt;/strong&gt; The test suite has 163 API tests, 207 Android unit tests and 68 iOS logic tests. CI runs on GitHub Actions.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I worked with AI
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What worked.&lt;/strong&gt; The assistant was most useful for work that is well specified and repetitive. That includes scaffolding modules, writing migrations and policies from a clear description, generating test cases and keeping code consistent across layers. An OpenAPI contract helps a lot here, because it gives both of us an unambiguous source of truth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What needed my review.&lt;/strong&gt; AI-generated code can look right and still be wrong, so I treated it like a pull request from a fast junior colleague. Security-sensitive areas need extra attention: tenant isolation, authorization rules and payment flows. I reviewed the code myself and used the tests as a safety net, not as a substitute for reading.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The limits.&lt;/strong&gt; The assistant doesn't know your business constraints unless you state them. It follows the structure you give it, so architecture decisions still have to come from a person. And "tests pass" only means the tests you have pass.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is not done.&lt;/strong&gt; I'd rather be clear about this than let anyone assume otherwise:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;iOS has logic but no screens.&lt;/strong&gt; The Swift business logic is there, with 68 tests, but there are no SwiftUI views.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stripe Connect is not implemented.&lt;/strong&gt; Payments run in Stripe test mode only, so there is no marketplace payout flow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No production usage.&lt;/strong&gt; There are no users, so none of this has been proven under real-world load or real customer behavior.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lessons learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Write the contract first.&lt;/strong&gt; With OpenAPI as the starting point, the AI's output stayed consistent across the backend and the clients.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put security in the database.&lt;/strong&gt; RLS made multi-tenancy something I could test and reason about, instead of something I had to remember to do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tests make AI-assisted development workable.&lt;/strong&gt; With a large test suite you can accept or reject changes with more confidence. Tests don't replace review.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review is the job.&lt;/strong&gt; AI speeds up writing code. It doesn't remove the need to understand it, and I'd be uneasy shipping code I couldn't explain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Be honest about scope.&lt;/strong&gt; Writing down what is missing (iOS screens, Stripe Connect) made the project easier to describe and easier to plan around.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;The platform is for sale: source code and documentation, without the brand. If you're an agency or a team looking for a starting point for a delivery or marketplace product, you can see the demo here: &lt;a href="https://plataforma-delivery-demo.netlify.app/en/" rel="noopener noreferrer"&gt;https://plataforma-delivery-demo.netlify.app/en/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can reach me at &lt;a href="mailto:angelfelixdossantoss89@gmail.com"&gt;angelfelixdossantoss89@gmail.com&lt;/a&gt;. I'm also happy to answer technical questions about the architecture in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>nestjs</category>
      <category>postgres</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
