<?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>Forem: Вололимир Салдан</title>
    <description>The latest articles on Forem by Вололимир Салдан (@__db00f010).</description>
    <link>https://forem.com/__db00f010</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3812146%2Ff2faa3b2-9b52-4e5d-a9ba-c09de02c4aa4.jpg</url>
      <title>Forem: Вололимир Салдан</title>
      <link>https://forem.com/__db00f010</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/__db00f010"/>
    <language>en</language>
    <item>
      <title>I built a $150 SaaS Billing Platform in 12 hours using an Autonomous AI Agent. Here’s why deployment is the new bottleneck.</title>
      <dc:creator>Вололимир Салдан</dc:creator>
      <pubDate>Sat, 07 Mar 2026 21:35:15 +0000</pubDate>
      <link>https://forem.com/__db00f010/i-built-a-150-saas-billing-platform-in-12-hours-using-an-autonomous-ai-agent-heres-why-4fmg</link>
      <guid>https://forem.com/__db00f010/i-built-a-150-saas-billing-platform-in-12-hours-using-an-autonomous-ai-agent-heres-why-4fmg</guid>
      <description>&lt;p&gt;The Challenge: Zero to Production in 12 hours&lt;br&gt;
Everyone is talking about AI coding assistants. I wanted to go further. I built an autonomous development system and gave it a high-stakes stress test:&lt;/p&gt;

&lt;p&gt;"Build a production-ready SaaS billing platform from scratch. No human code. No manual deployment. Go."&lt;/p&gt;

&lt;p&gt;The Result: BillingCore — a functional billing engine with subscriptions, usage-based metrics, and a dashboard.&lt;br&gt;
The Cost: ~$150 in AI API tokens.&lt;br&gt;
The Time: 12 hours (including a few "AI existential crises").&lt;/p&gt;

&lt;p&gt;🛠 The Stack (Chosen Autonomously)&lt;br&gt;
I didn't pick the tech. The system did, based on a "performance vs. dev speed" trade-off:&lt;/p&gt;

&lt;p&gt;Backend: Fastify (picked over Express for lower overhead) + Prisma + PostgreSQL + Redis.&lt;/p&gt;

&lt;p&gt;Frontend: React 18 + Vite + TypeScript.&lt;/p&gt;

&lt;p&gt;Infrastructure: Dockerized services deployed to Railway.&lt;/p&gt;

&lt;p&gt;Auth: JWT Bearer tokens + bcrypt.&lt;/p&gt;

&lt;p&gt;📉 The "Aha!" Moment: Why AI Still Struggles&lt;br&gt;
Writing 10,000 lines of code was the easy part. The system hit a brick wall during Production Deployment.&lt;/p&gt;

&lt;p&gt;The Cookie War: Initially, the agent tried using httpOnly cookies for auth. On localhost, it worked. On Railway, with different subdomains for API and Frontend, CORS and browser security policies killed the session.&lt;/p&gt;

&lt;p&gt;How the AI fixed it: Instead of me stepping in, the agent analyzed the 401 errors, recognized the Cross-Origin limitation, and refactored the entire auth strategy from Cookies to Authorization: Bearer tokens across 7 frontend pages and 30+ backend endpoints.&lt;/p&gt;

&lt;p&gt;📊 By the Numbers&lt;br&gt;
Lines of Code: 10,000+&lt;/p&gt;

&lt;p&gt;Database Schema: 12 tables (complex relations: Subscriptions ↔ Plans ↔ Usage Metrics).&lt;/p&gt;

&lt;p&gt;API: 30+ RESTful endpoints with OpenAPI/Swagger docs.&lt;/p&gt;

&lt;p&gt;Production Services: 4 (PostgreSQL, Redis, Backend, Frontend).&lt;/p&gt;

&lt;p&gt;🧠 Lessons Learned&lt;br&gt;
The bottleneck for AI-driven software isn't logic anymore—it's environment synchronization. AI can write a perfect function in seconds, but making that function work across Docker, Redis, and a browser’s security sandbox is where the real "seniority" of an autonomous system is tested.&lt;/p&gt;

&lt;p&gt;🔗 Explore&lt;br&gt;
Live Demo: &lt;a href="https://harmonious-blessing-production-32c7.up.railway.app" rel="noopener noreferrer"&gt;https://harmonious-blessing-production-32c7.up.railway.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Source Code: &lt;a href="https://github.com/globoohotron-rgb/billingcore" rel="noopener noreferrer"&gt;https://github.com/globoohotron-rgb/billingcore&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What would you ask an autonomous agent to build next? Let’s discuss in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>typescript</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
