DEV Community

Cover image for How I Built a Full SaaS with AI (No Coding, 10 Hours)
Samuel Rondot
Samuel Rondot

Posted on

How I Built a Full SaaS with AI (No Coding, 10 Hours)

Last weekend, I built and deployed a production-ready SaaS in less time than it usually takes me to set up auth. No hand coding, no boilerplate — just AI prompts.

Normally, building a SaaS app means weeks of wiring:

  • Auth

  • Database

  • Payments

  • Background jobs

  • AI integrations

This time, I let AI do the heavy lifting.
In under 10 hours, I shipped Getwriter.so, an AI SEO article generator, using nothing but Capacity.so + prompts.

Here's the breakdown including the prompts I actually used.


Step 1 - Landing Page First (Design Baseline)

I started with the landing page to lock in design before building features.

Prompt:

Build a landing page for an AI SEO article generator.
Include a hero section, pricing, and a clear CTA button.

Capacity scaffolded:

  • A Vite project

  • Hero + Pricing sections with shadcn components

  • Navbar & CTA

This became the design system for the rest of the app.

fullstack saas with ai and capacity.so

The idea here was to build the perfect landing page so the AI would build the rest of the app using the same style. And it worked !

To create those components I went on 21st.dev and copy past prompts of components I like directly in the Capacity's chat.

21st.dev prompts


Step 2 - Auth + Dashboard

Next, I wanted users to sign up, log in, and land in a protected dashboard.

I started by connecting my Supabase account to Capacity using the native integration.

Supabase integration Capacity.so

The great point here is that you just copy paste your token and Capacity creates everything for you including Edge functions, databases, buckets etc ...

Prompt:

Using the Supabase account connected you have access to, create an authentication flow.
Add signup + login forms with email verification.
After login, redirect users to a dashboard with a sidebar layout.

Capacity delivered:

  • Supabase Auth integration

  • Protected routes

  • A dashboard scaffold with sidebar navigation

Note : I also copy pasted the code from Shadcn authentication forms in the chat to get a slick authentication design.

Prompt to create authentication page with AI


Step 3 - Workspaces

Each user should manage multiple websites. I asked for a Workspace model.

Prompt:

Create a "workspaces" feature.
Each workspace represents one website.
Users should be able to create, select, and switch between workspaces in the sidebar.

Capacity created:

  • A workspaces table in Supabase

  • Sidebar workspace selector

  • Workspace creation flow

Capacity.so create a dashboard with AI


Step 4 - Website Analysis (Automatic)

When a workspace is added, I wanted it to feel instantly useful.

Prompt:

`When a workspace is created, run an Edge Function that:

  1. Fetches the website content and metadata
  2. Saves the favicon into Supabase Storage
  3. Generates a summary with OpenAI
  4. Stores everything in the database`

Result: new workspaces show site info, favicon, and an AI-generated description automatically.

AI workspace analysis Capacity.so


Step 5 - Article Creation Flow (Keyword → Title → Plan)

Before generating full articles, I wanted users to have a proper article creation page where they:

  1. Enter a target keyword

  2. Generate a suggested title with AI

  3. Generate an outline/plan with AI

  4. Edit the title/plan manually if they want

  5. Then launch full article generation

Prompt:

`Create a page inside the dashboard for creating an article.
Features:

  • Input for target keyword
  • Button to generate a title with OpenAI ( using Edge function )
  • Button to generate an article outline/plan with OpenAI ( using Edge function )
  • Editable fields for title and plan
  • Button to "Start Generation" that triggers the full article job ( we will implement that later )`

Capacity scaffolded:

  • A new page in the dashboard under the selected workspace

  • Keyword input + AI title/outline buttons

  • Integration with OpenAI for suggestions

  • Editable text areas so users can tweak before confirming

  • A "Start Generation" button that hands off to the queue system

This gave me a real editor-like UX, instead of instantly jumping into background generation.

SEO article keyword generator

Step 6 - Long-Form Article Generation

That was the tricky part. Generating a 3000-word article in one request would hit Supabase Edge functions timeouts (30s on free plans ).

Capacity suggested a queue solution.

Prompt:

`I want to generate SEO articles section by section.
The article must be split by H2.
Use PGMQ and pg_cron to create a queue.
Add an "article_generation_jobs" table to track progress.
Split article generation into multiple edge functions:

  • enqueue-article
  • process-article-section Frontend should poll job status until complete.`

This gave me:

  • PGMQ queue

  • Cron-driven workers

  • Job tracking table

  • Reliable background article generation

Note: I also copy/pasted the PGMQ docs I linked above into the chat to make sure the AI is using it correctly.

And after a few back and forth, I finally managed to get exactly what I wanted : SEO articles that target a specific keyword and following a specific plan.
AI seo article writer built with AI


Step 7 - Stripe Credits System

Finally, I implemented Stripe to accept payments and deduct credits each time an article is generated.

Prompt:

Integrate Stripe Checkout.
Each plan gives credits (e.g. 10 credits = 1000 words).
After successful payment (Stripe webhook), add credits to the user account.
Show remaining credits in the dashboard.
Deduct 100 credits per article generated.

NOTE: I wrote a comprehensive doc on how to integrate Stripe with Capacity, but the key here is to disable JWT verification on your Supabase Edge function that handles webhooks.

Supabase Edge function disable JWT verify

Other wise you will end up with errors 401.

Capacity implemented:

  • Checkout Edge Function

  • Stripe Webhook

  • credit_transactions table

  • Credit balance in dashboard UI


Step 8 - Article Cover Images With Replicate

To improve the app even further, I wanted to automatically generate cover using AI.

I went with Replicate and the model bytedance/seedream-4 :

Prompt:

Add an option to generate images for articles.
Use Replicate (https://replicate.com/bytedance/seedream-4) to create illustrations.
Save them and attach them to the article in the dashboard.

generate AI images with Replicate


✅ What I Ended Up With

In less than 10 hours, I had a SaaS that:

  • Lets users sign up and log in

  • Create workspaces for their websites

  • Auto-analyzes sites with AI

  • Generates long-form SEO articles with queues

  • Generate article banners with AI & Replicate

  • Bills via Stripe credits

All built through iterative prompts in Capacity.so.


📝 Lessons Learned

  • Start with the landing page. It sets the design baseline.

  • Think in steps. Each feature = one clear prompt.

  • Queues beat timeouts. PGMQ + pg_cron inside Supabase kept things reliable.

  • Credits > subscriptions for clear user value.


🎯 Takeaway

I didn't write the app. I guided it into existence with prompts.\
That's the new way to ship SaaS fast.

👉 If you want to try this yourself: capacity.so

Top comments (0)