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.

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

ScreenWhat it doesPackage APIs
/loginSign in with a sign-in code or a passkey<AuthForm>, useLoginFlow
/stripsThe workspace's strips, and a field for a new ideacreateFunctions → workspace, definePageMeta({ auth: true }), <AppShell>
/pricingCredit packs and a plan with a head startdefineBillingCatalog, <PricingTable>, useCredits
/strips/[id]The photo, the strip as it draws, its place in line, and the share linksetupStorage, <UploadField>, defineJobQueue, useJob, <Gate>, <AiLabel>, useShareLink
/s/[token]A finished strip, for anyone with the linkstorage.shareable, storage.resolveShareLink
The bell, /notifications and email"Your strip is ready", in the app, as a push and by emailsetupEmail, setupNotifications, <AppShell>, useEmailPreferences

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.

PartYou addAccountsTime
1. Sign inThe app, sign-in and strips per workspaceNone15 min
2. Sell creditsA credit catalog, the pricing page and a test purchaseA Polar sandbox15 min
3. Accept photosChecked uploads, moderation and reportsAn AI gateway20 min
4. Generate stripsThe generation queue and its pageThe same AI gateway25 min
5. Notify and shareThe ready email, the in-app inbox and share linksA Resend account20 min
6. Test and deployTests of the paid path, and productionA Convex account and Vercel30 min

You need Node 24.11 or later and some Nuxt. The 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:

npm create nuxt@latest my-panels -- -t gh:qruto/nuxt-backend/templates/panels
pnpm create nuxt@latest my-panels -t gh:qruto/nuxt-backend/templates/panels
yarn create nuxt my-panels -t gh:qruto/nuxt-backend/templates/panels
bun 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 says what it needs to run.

The parts

Part 1: 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.

Part 2: sell 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.

Part 3: accept photos

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

Part 4: generate strips

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.

Part 5: 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.

Part 6: test and deploy

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