Skip to content

Moving from

From a Lovable or Bolt prototype to a built app

A prototype from Lovable or Bolt is already code in a GitHub repository, so the move reshapes code you already have. Each screen goes into a module, becomes one of 9 screen types, loads its data through one api file with four states, and asks one permission table before it shows an action. Every one of those changes is held by a check that fails the build, so the app keeps its shape after the next prompt.

By Bohuslav PoláčekChecked

What a prototype's code becomes in an app built on Meadowstack, and the check that keeps it that way.

Why teams move

  • The prototype convinced people, and now real records, several roles and an approval have to run through it.
  • Each new prompt changes more than it should, because nothing in the code says where a rule lives or what a screen must look like.
  • The team wants the code in a repository of its own, with checks a reviewer and an AI coding tool both follow.

Both tools keep the code in GitHub: Lovable syncs one branch of one repository both ways, and Bolt commits every change that does not break the project and pulls edits made outside it. So the prototype is a starting point you can read line by line.

How the move goes

  1. Make a new repository with npm run new-app -- ../my-app (docs/recipes/start-your-own-app.md). Do not paste the framework into the prototype's repository: the new app comes with the kit packed in vendor/, the rules for your coding tool and the checks, and the prototype stays as the reference.
  2. Read the prototype and list its kinds of record, their states, the actions on them and who may take each. That list is the five questions of docs/recipes/new-module.md, and it decides every file.
  3. Copy the sample module requests, rename it, and write domain/ first: types, the states and their moves, the permission table.
  4. Move the screens one by one. Keep the prototype's copy and its order of fields; replace its layout with a Screen of the right type and its components with the kit's (find_component in the kit's MCP server says which).
  5. Move every database call into the module's api file. With Supabase, keep the project and its row level security, and mirror domain/permissions.ts in the policies as the framework's Supabase example does (Supabase).
  6. Run npm run check and npm run e2e until both pass, then remove the sample with npm run remove-sample.

Before launch

  • No page reads the database directly; data/api.ts is the only import.
  • Every action is hidden for people who may not take it, and the database or your server refuses it too.
  • Real sign-in replaces the starter's development sign-in, which in 2.1 is simulated (Security).

What comes across and what does not

  • Copy, fields, the order of a form and the flow come across: they are what the prototype proved.
  • Your database comes across. A Supabase project stays as it is; the adapter maps its rows to the module's types.
  • Server code needs a home. Lovable apps created from 13 May 2026 run on TanStack Start, which runs server code, while older Lovable apps are React and Vite and build to static files. The framework's apps are React and Vite too, so a server function from the prototype moves to your backend or to a database function.
  • The prototype's components and styling do not come across: screens are rebuilt from kit components and tokens, which is where the consistency comes from.
  • Lovable or Bolt editing stops for the new repository. Keep the prototype's repository as it is, and make changes in the new app with your coding tool.

When to stay in Lovable or Bolt

  • You are still finding out what the app should be, and a new idea should be on screen in minutes.
  • The app is a landing page, a form or a tool for one person, with no roles and no approvals.
  • Nobody will review code or run checks, and the prompt is the only way the app changes.

The guide an app builder or a coded framework weighs the two in more depth.

Four states, not a fetch in an effect

templates/starter/src/modules/requests/pages/request-form.tsx
<AsyncState
  resource={resource}
  onRetry={reload}
  loading={frame(<FormSkeleton />)}
  error={(_error, retry) => frame(<ErrorState onRetry={retry} />)}
>
  {(request) =>
    (request ? can("request.edit", request) : can("request.create")) ? (
      <RequestFormView request={request} title={title} />
    ) : (
      frame(
        <NoAccess description="You can edit your own drafts and your requests that were rejected. Admins can edit all of them." />,
      )
    )
  }
</AsyncState>
The starter's request form: the screen renders exactly one of loading, error or the form, and a person who may not edit sees NoAccess instead of a button that fails.

Questions

Can I copy the prototype's files into the starter?

You can copy pieces, but not whole pages as they are: each page has to become a Screen of one type, load data through its module's api and ask the permission table. The checks fail until it does, which is the point.

Do I have to leave Supabase?

No. The framework's recipe for connecting data includes a Supabase example: a migration with row level security that mirrors the permission table, and an adapter that maps rows to the module's types.

My Lovable app runs on TanStack Start. Does that matter?

Only for server code. The framework's apps are React and Vite and build to static files, so anything the prototype ran on the server moves to your backend or into the database.

Can I keep using Lovable or Bolt after the move?

On the prototype, yes. The new app lives in its own repository, so changes to it go through your coding tool and its checks, not through the builder's sync.

Two ways

Build it yourself, or have it built

  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app
  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework