---
title: "Build a creative app"
description: "Build Panels, a comic-strip maker, from the starter to production in six parts: sign-in, credits, uploads, generation, notifications and sharing, then a deploy."
canonical_url: "https://nuxt-backend.dev/docs/start/tutorial"
---
# Build a creative app

> Build Panels, a comic-strip maker, from the starter to production in six parts: sign-in, credits, uploads, generation, notifications and sharing, then a deploy.

Version: nuxt-backend 0.6.x · Tab: Start · Kind: landing · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

You build Panels, a comic-strip maker. People sign in, buy credits, upload a photo, and turn an idea into a three-panel strip drawn by a model. They get an email when the strip is ready, and share it by a link anyone can open. Then you test the paid path and deploy it.

Panels is one app with three uses. The tutorial builds it, the public demo runs it in sandbox mode, and the template publishes it, so the code you write here is the code the demo runs. It uses only the package's public APIs.

## What you build

<table>
<thead>
  <tr>
    <th>
      Screen
    </th>
    
    <th>
      What it does
    </th>
    
    <th>
      Package APIs
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        /login
      </code>
    </td>
    
    <td>
      Sign in with a sign-in code or a passkey
    </td>
    
    <td>
      <code>
        <AuthForm>
      </code>
      
      , <code>
        useLoginFlow
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /strips
      </code>
    </td>
    
    <td>
      The workspace's strips, and a field for a new idea
    </td>
    
    <td>
      <code>
        createFunctions
      </code>
      
       → <code>
        workspace
      </code>
      
      , <code>
        definePageMeta({ auth: true })
      </code>
      
      , <code>
        <AppShell>
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /pricing
      </code>
    </td>
    
    <td>
      Credit packs and a plan with a head start
    </td>
    
    <td>
      <code>
        defineBillingCatalog
      </code>
      
      , <code>
        <PricingTable>
      </code>
      
      , <code>
        useCredits
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /strips/[id]
      </code>
    </td>
    
    <td>
      The photo, the strip as it draws, its place in line, and the share link
    </td>
    
    <td>
      <code>
        setupStorage
      </code>
      
      , <code>
        <UploadField>
      </code>
      
      , <code>
        defineJobQueue
      </code>
      
      , <code>
        useJob
      </code>
      
      , <code>
        <Gate>
      </code>
      
      , <code>
        <AiLabel>
      </code>
      
      , <code>
        useShareLink
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /s/[token]
      </code>
    </td>
    
    <td>
      A finished strip, for anyone with the link
    </td>
    
    <td>
      <code>
        storage.shareable
      </code>
      
      , <code>
        storage.resolveShareLink
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      The bell, <code>
        /notifications
      </code>
      
       and email
    </td>
    
    <td>
      "Your strip is ready", in the app, as a push and by email
    </td>
    
    <td>
      <code>
        setupEmail
      </code>
      
      , <code>
        setupNotifications
      </code>
      
      , <code>
        <AppShell>
      </code>
      
      , <code>
        useEmailPreferences
      </code>
    </td>
  </tr>
</tbody>
</table>

The backend is a few files of your own in `backend/`, next to the ones the install wrote: `schema.ts`, `routes.ts`, `strips.ts`, `demo.ts`, `storage.ts` and `jobs.ts`, and a few lines in `ai.ts`, `email.ts`, `notifications.ts`, `admin.ts`, `account.ts` and `auth.ts`.

## Accounts and time

Each part names the accounts it needs. The first part needs none, and every account has a free tier or a sandbox that covers the tutorial.

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      You add
    </th>
    
    <th>
      Accounts
    </th>
    
    <th>
      Time
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/start/tutorial/sign-in">
        1. Sign in
      </a>
    </td>
    
    <td>
      The app, sign-in and strips per workspace
    </td>
    
    <td>
      None
    </td>
    
    <td>
      15 min
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/start/tutorial/credits">
        2. Sell credits
      </a>
    </td>
    
    <td>
      A credit catalog, the pricing page and a test purchase
    </td>
    
    <td>
      A <a href="https://nuxt-backend.dev/docs/services/polar">
        Polar
      </a>
      
       sandbox
    </td>
    
    <td>
      15 min
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/start/tutorial/uploads">
        3. Accept photos
      </a>
    </td>
    
    <td>
      Checked uploads, moderation and reports
    </td>
    
    <td>
      An <a href="https://nuxt-backend.dev/docs/services/ai-gateway">
        AI gateway
      </a>
    </td>
    
    <td>
      20 min
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/start/tutorial/generate">
        4. Generate strips
      </a>
    </td>
    
    <td>
      The generation queue and its page
    </td>
    
    <td>
      The same AI gateway
    </td>
    
    <td>
      25 min
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/start/tutorial/notify-and-share">
        5. Notify and share
      </a>
    </td>
    
    <td>
      The ready email, the in-app inbox and share links
    </td>
    
    <td>
      A <a href="https://nuxt-backend.dev/docs/services/resend">
        Resend
      </a>
      
       account
    </td>
    
    <td>
      20 min
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/start/tutorial/deploy">
        6. Test and deploy
      </a>
    </td>
    
    <td>
      Tests of the paid path, and production
    </td>
    
    <td>
      A <a href="https://nuxt-backend.dev/docs/services/convex">
        Convex
      </a>
      
       account and <a href="https://nuxt-backend.dev/docs/services/vercel">
        Vercel
      </a>
    </td>
    
    <td>
      30 min
    </td>
  </tr>
</tbody>
</table>

You need Node 24.11 or later and some Nuxt. The [Quickstart](https://nuxt-backend.dev/docs/start/quickstart) is a shorter first run, if you want one before this.

## Skip to the end

The finished app is a template. Create it to read the result, or to run the demo on your own accounts:

```bash
npm create nuxt@latest my-panels -- -t gh:qruto/nuxt-backend/templates/panels
```

The command names the template by its folder on GitHub until `create nuxt` lists it by name. [Templates](https://nuxt-backend.dev/docs/start/templates) says what it needs to run.

## The parts

<card-group>
<card icon="i-lucide-log-in" title="Part 1: sign in" to="https://nuxt-backend.dev/docs/start/tutorial/sign-in">

Create Panels from the starter, run it on a local deployment, sign in with the code in the terminal, and model strips per workspace.

</card>

<card icon="i-lucide-coins" title="Part 2: sell credits" to="https://nuxt-backend.dev/docs/start/tutorial/credits">

Declare credit packs in the billing catalog, sync them to the billing sandbox, show the pricing page, and buy credits with the test card.

</card>

<card icon="i-lucide-upload" title="Part 3: accept photos" to="https://nuxt-backend.dev/docs/start/tutorial/uploads">

Accept photo uploads with size, type and quota checks, strip their metadata, show them, and keep unsafe uploads out with moderation and reports.

</card>

<card icon="i-lucide-wand-sparkles" title="Part 4: generate strips" to="https://nuxt-backend.dev/docs/start/tutorial/generate">

Define the generation queue, hold credits while a strip draws and charge or refund them, run it from a page, and label the result as AI-generated.

</card>

<card icon="i-lucide-share-2" title="Part 5: notify and share" to="https://nuxt-backend.dev/docs/start/tutorial/notify-and-share">

Email people when their strip is ready, show the in-app inbox, and share a finished strip by a link anyone can open.

</card>

<card icon="i-lucide-rocket" title="Part 6: test and deploy" to="https://nuxt-backend.dev/docs/start/tutorial/deploy">

Test the paid path with backend tests, a page test and one browser run, then deploy Panels and check production with doctor.

</card>
</card-group>


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
