Lovable AI logo
15 minute setup

How to Use Lovable AI

Build a full-stack app with a real database, user authentication, and deployment in 15 minutes. Lovable + Supabase is the fastest path to a production-ready app.

Prerequisites

  • A modern web browser (Chrome, Firefox, Safari, Edge)
  • An internet connection
  • A Lovable account (free to sign up)
  • A Supabase account (free tier — for database and auth features)
  • Optional: a GitHub account (for code export and version control)
1

Go to lovable.dev

Open lovable.dev in your browser. Like Bolt.new, Lovable runs entirely in the browser — nothing to install.

What sets Lovable apart from other browser-based builders is its deep integration with Supabase. While Bolt.new is great for frontend-heavy apps, Lovable is built for full-stack projects that need a real database, user accounts, and backend logic.

2

Sign Up

Create your Lovable account using GitHub or email. Signing in with GitHub is recommended because it makes it easy to export your project to a repository later.

Lovable offers a free tier with limited prompts per day. Paid plans start at $20/mo for more prompts and priority generation.

Use GitHub sign-in

Connecting GitHub during sign-up enables one-click repository creation later. If you plan to continue development outside Lovable or collaborate with others, this saves time.
3

Describe Your App

Click New Project and describe what you want to build. Lovable specializes in full-stack apps, so lean into that — mention databases, user accounts, and multi-page flows.

Here is a prompt that plays to Lovable's strengths:

Build a project management app with these features:

- User authentication with email sign-up and login
- A dashboard showing the user's projects as cards
- Each project has a name, description, and list of tasks
- Tasks can be created, marked complete, and deleted
- A settings page where users can update their name and avatar
- Use Supabase for the database and authentication
- Modern, clean UI with a sidebar navigation
- Responsive design that works on mobile

Notice how this prompt mentions the data model (projects, tasks), authentication, and specific pages. This gives Lovable enough structure to generate a complete, working application.

4

Review the Generated Code

After Lovable generates your app, spend a few minutes exploring the code. You will see:

  • React components — organized in a clean component hierarchy. Lovable generates readable, well-structured TypeScript code.
  • Supabase integration — database queries, auth hooks, and real-time subscriptions are wired up with proper error handling.
  • Routing — pages are set up with proper navigation, protected routes, and layouts.
  • Styling — Tailwind CSS is used by default, with consistent design tokens across components.

Learning opportunity

The code Lovable generates is real, production-quality React. Reading it teaches you patterns for Supabase auth, database queries, and component architecture. Even if you do not write code yourself, understanding the structure helps you prompt better.
5

Connect Supabase

This is the key step that makes Lovable a full-stack tool. Click the Supabase button in the Lovable interface to connect your Supabase project.

If you do not have a Supabase project yet:

  1. Go to supabase.com and sign up (free)
  2. Create a new project (pick a region close to your users)
  3. Copy your project URL and anon key from the project settings
  4. Paste them into Lovable's Supabase connection dialog

Once connected, Lovable can create database tables, set up Row Level Security (RLS) policies, and configure auth — all from your prompts.

The Supabase free tier has limits: 500 MB database storage, 50,000 monthly active users, 1 GB file storage. This is plenty for development and small apps. You only need to upgrade when you have real traffic.

Get the Vibe Coding Cheat Sheet

Best tool for every use case + pricing + pro tips. One page, zero fluff. Plus weekly updates on new tools.

6

Add Authentication

With Supabase connected, adding authentication is simple. Tell Lovable:

Add user authentication with:
- Email/password sign-up and login
- A protected route middleware that redirects
  unauthenticated users to the login page
- A user menu in the header with avatar and sign out
- Password reset via email

Lovable creates the auth UI, configures Supabase Auth, and sets up route protection automatically. The generated code uses Supabase's auth hooks, so session management is handled for you.

Auth provider options

Supabase supports multiple auth methods: email/password, magic links, Google, GitHub, Apple, and more. You can ask Lovable for any of these: "Add Google OAuth login" or "Use magic link authentication instead of passwords."
7

Test and Iterate

Use the live preview to test your app end-to-end:

  1. Sign up with a test email address
  2. Log in and verify the dashboard loads
  3. Create, update, and delete data
  4. Check that auth protects the right routes
  5. Test on mobile using the device toggle

When you find issues, describe them in a follow-up prompt:

The task creation form doesn't clear after submitting.
Fix it so the form resets and shows a success message.
Also, the task list should update in real-time when a
new task is added — use Supabase realtime subscriptions.

Check the Supabase dashboard

Open your Supabase project dashboard to see the actual database. You can browse tables, check auth users, and verify that data is being stored correctly. This is useful for debugging when the UI looks right but data is not persisting.
8

Deploy

Click Deploy to publish your app to a live URL. Lovable handles hosting, SSL, and CDN configuration.

Your deployed app connects to the same Supabase project, so all your data, auth configuration, and real-time features work in production exactly as they do in preview.

You can also:

  • Export to GitHub — push the full source code to a repository. Continue development in any editor.
  • Deploy to Vercel or Netlify — once exported, deploy anywhere that supports React/Next.js applications.
  • Custom domain — connect your own domain for a professional URL.

Production readiness

Before sharing with real users, review the Supabase RLS (Row Level Security) policies that Lovable generated. RLS controls who can read and write data. Ask Lovable: "Review and tighten the RLS policies so users can only access their own data."

What to Build First

SaaS Dashboard with User Accounts

Intermediate20 min

Tell Lovable: "Build a SaaS dashboard with email sign-up, a settings page, and a data table showing user activity. Connect Supabase for the database and auth." The full stack in one prompt.

Community Forum

Advanced30 min

Prompt: "Create a community forum where users can sign in, create topics, reply to threads, and upvote posts. Use Supabase for real-time updates and user accounts." Tests database relationships and real-time features.

Event RSVP App

Beginner15 min

Prompt: "Build an event RSVP app where organizers create events with a date, description, and capacity. Guests RSVP with their email and get a confirmation. Include a public event page and a private organizer dashboard." Great first project for learning Lovable's full stack.

Lovable Tips from Power Users

Start with the data model

Describe your database structure in the initial prompt. "I need a users table, a projects table (belongs to user), and a tasks table (belongs to project)." Lovable sets up Supabase tables and relationships automatically.

Mention Supabase features explicitly

Lovable has deep Supabase integration. Ask for specific features: "Use Supabase Auth with magic links," "Enable real-time subscriptions on the messages table," "Use Supabase Storage for image uploads." Be specific.

Use the code editor for small tweaks

For minor changes — a color, a text string, a spacing value — edit the code directly in Lovable's editor instead of burning an AI prompt. Save AI prompts for structural changes.

Connect GitHub early

Link your Lovable project to a GitHub repo from the start. This gives you version control, the ability to collaborate, and an escape hatch if you want to continue development in another tool.

Test auth flows in incognito

When testing sign-up and login, use incognito/private browsing windows. This avoids cached sessions and gives you a realistic view of what new users experience.

Read the generated code

Lovable generates real, readable React code. Spend time reading it — you will learn patterns for Supabase integration, auth flows, and component architecture that you can reuse in future projects.

Lovable vs Bolt.new: Quick Take

FactorLovableBolt.new
Best ForFull-stack apps with databaseFrontend-heavy apps and prototypes
DatabaseSupabase (built-in integration)Manual setup or localStorage
AuthenticationOne-prompt setup via SupabaseManual integration required
Real-time FeaturesNative Supabase subscriptionsRequires extra setup
Speed to First BuildSlightly slower (more to generate)Very fast (simpler output)
Code ExportGitHub integrationGitHub or download

Want the full breakdown? Read the complete Bolt vs Lovable comparison

Built something with Lovable?

Compare Lovable against other tools, or submit your project to the showcase.

We use cookies for analytics. Learn more