
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)
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.
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
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 mobileNotice how this prompt mentions the data model (projects, tasks), authentication, and specific pages. This gives Lovable enough structure to generate a complete, working application.
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
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:
- Go to supabase.com and sign up (free)
- Create a new project (pick a region close to your users)
- Copy your project URL and anon key from the project settings
- 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.
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.
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 emailLovable 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
Test and Iterate
Use the live preview to test your app end-to-end:
- Sign up with a test email address
- Log in and verify the dashboard loads
- Create, update, and delete data
- Check that auth protects the right routes
- 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
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
What to Build First
SaaS Dashboard with User Accounts
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
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
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
| Factor | Lovable | Bolt.new |
|---|---|---|
| Best For | Full-stack apps with database | Frontend-heavy apps and prototypes |
| Database | Supabase (built-in integration) | Manual setup or localStorage |
| Authentication | One-prompt setup via Supabase | Manual integration required |
| Real-time Features | Native Supabase subscriptions | Requires extra setup |
| Speed to First Build | Slightly slower (more to generate) | Very fast (simpler output) |
| Code Export | GitHub integration | GitHub 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.