Introduction
Features
Integrations
Tips & tricks
Prompt Engineering
Quickstart
From first prompt to full-stack app
Overview of Lovable
Welcome to this step-by-step guide on how to create a full-stack application using Lovable:
The Lovable Platform Overview
Step 1
To get started, head over to lovable.dev and create an account.
Step 2
Once registered, you’ll be able to create your first project.
Step 3
Simply enter an initial prompt to kick things off, and Lovable will do the rest! This is the starting block for any project in Lovable, where you can bring your ideas to life instantly.
At Lovable, simplicity is key:
- Here you kickstart your project with a single prompt.
- Explore all projects, including the latest and featured ones.
- Jumpstart with a template from our curated selection.
- Personalize your experience by viewing and editing your profile.
- Manage your account to check monthly credits and adjust settings.
- Experiment with Labs features like Chat mode—toggle them on or off.
- Upgrade or downgrade your plan seamlessly.
At Lovable, every project follows a structured workflow:
- Edit with ease using a chat-based interface.
- Attach images for precision edits and inspiration.
- Select and visually edit components for a seamless design experience.
- Switch effortlessly between edit mode and chat mode.
- Track changes with version history and restore any previous version.
- Navigate through pages of your project with ease.
- Enable remixing or rename your project as needed.
- Integrate with Supabase for backend capabilities.
- Collaborate via GitHub to edit and manage your code.
- Publish, deploy, and share your project with a preview link (remember to re-publish after changes).
- Toggle between web and mobile view for responsive design.
- Refresh the preview modal to see updates instantly.
- Open your project directly using the preview link.
Every project’s settings empower you to:
- View key project details like total edits and creation date.
- Set up custom knowledge to tailor your project’s context.
- Connect to a GitHub repository for seamless collaboration.
- Adjust project visibility from public to private.
- Manage the badge display (available for paid plans only).
- Rename your project anytime.
- Delete your project (⚠️ Danger Zone).
You can always quickly access:
- Dashboard for an overview of your projects.
- Account settings to manage your profile and preferences.
- Documentation, Feedback Portal, and Support for guidance and assistance.
- Log out securely from your Lovable account.
Start your Project
There are several ways to get started with Lovable, depending on your preferences and resources:
Lovable’s prompt-based system makes app creation simple.
- Just describe what you want to build in the prompt box.
- The more specific you are, the better the results.
- Start with clear and detailed prompts.
- You can refine and adjust your project as you go.
Example:
“Create a dashboard with user login, monthly sales in a line chart, and customer demographics in a pie chart.”
Step 1
Lovable offers templates to help you get started quickly on popular project types, such as dashboards, e-commerce sites, or social apps, for a quick setup.
Step 2
Once the template loads, use prompts to adjust features, add new elements, or fine-tune the design to match your vision.
You can remix an existing public project or one of your own. Remixing allows you to reuse the current state of a project as a starting point and build upon it. It’s a great way to explore new ideas, make adjustments, or iterate with different changes while preserving the original version.
Note that it is not possible to remix projects when Supabase is connected.
If you have a design in Figma,
- Using screenshots: Take a screenshot of any part of it. You can paste the screenshot directly into Lovable or drag-and-drop the image file. Once you press Enter, Lovable will convert your design into functional code.
- Using Builder.io integration: First, structure your Figma design using Auto-Layout and clear layer naming. Then, open the Builder.io plugin in Figma, select your design, and click “Open in Lovable” to generate a fully functional app. More information here.
Step 1
Use Excalidraw or any similar tool to sketch your UI.
Step 2
Take a screenshot of your drawing, then paste or drag-and-drop it into Lovable.
Step 3
The platform will transform your sketch into working code.
If you want to replicate an existing webpage,
Step 1
Take a screenshot using shortcuts like Cmd+Shift+4 on Mac or tools like the GoFullPage Chrome Extension.
Step 2
Paste or drag the screenshot into Lovable
Step 3
Lovable will recreate the structure of the webpage in your project.
Edit your Project
The Knowledge Base in Lovable acts as your project’s blueprint, organizing functionality, design, and goals in one place.
Follow these steps to set up and manage it effectively.
Step 1
Go to the Knowledge Base section in your dashboard.
Step 2
Click “Add Entry” and categorize them under:
- 📌 Project Overview – Define objectives and scope.
- 🚀 Key Features – List core functionalities.
- 🎨 Design Guidelines – Document UI/UX principles.
This helps maintain consistency in outputs.
Step 3
Keep It Updated: Regularly review and update entries as your project evolves. This ensures the development stays on track.
Visual Edits allows AI-driven development with Tailwind-native visual controls for easy refinement.
Speed matters when building AI-driven apps, but so do stability and control. That’s why we’ve upgraded versioning to make tracking changes effortless.
Restore Past Versions Instantly
If you want to go back to a previous version of your app, click ‘restore’ on the version you want to revert to.
Bookmark Key Edits
Keep your work organized by bookmarking important edits, making it easy to find and revisit them later.
Intuitive Version History
The history panel now works like Google Docs, making tracking changes easier.
Attach images directly to the chat to add context to your prompts. This makes it easier to illustrate ideas or concepts that are better shown than described.
Integrate your project with GitHub to iterate on your application seamlessly. You can make code changes in GitHub or your preferred IDE while keeping everything in sync with Lovable.
Add Fullstack Capabilities to your Project
Supabase is a backend-as-a-service platform that integrates smoothly with Lovable to add powerful backend capabilities to your application.
Set Up Supabase
Create an account on Supabase and create a new project.
Link to Lovable
In Lovable, go to Settings -> Connect Supabase and follow the steps.
Manage Data
Set up tables, manage user data, and configure email notifications.
After setting up your Supabase project, you’ll need to connect it to your Lovable project. This connection enables Lovable to leverage Supabase’s backend services seamlessly.
Implementing secure authentication is crucial for any application. With Lovable’s AI form builder and Supabase integration, you can effortlessly create robust login and sign-up forms.
Here’s a step-by-step guide:
Create a Supabase Account
- Visit Supabase and sign up.
- Access the dashboard to manage your projects and databases.
Integrate Supabase with Lovable
- In Lovable, navigate to the integration settings.
- Input your Supabase project URL and API keys to establish a connection.
Design Authentication Forms with Lovable
- Use Lovable’s AI form builder to craft intuitive login and sign-up forms.
- Customize the UI to align with your application’s branding.
Implement Authentication Workflows
- Set up Supabase Edge Functions to handle tasks like token validation and user sessions.
- Ensure secure storage of user credentials and manage session persistence.
Enable Email Verification
- Configure Supabase to send verification emails upon user registration.
- This adds an extra layer of security by confirming user identities.
Test and Deploy
- Thoroughly test the authentication flows to ensure seamless user experiences.
- Once satisfied, deploy your application with confidence.
There are many ways to connect Stripe to Lovable, but the most straight-forward way is to utilize Stripe’s built in payment links. Use this resource to make sure you get this right!
Deploy & Publish your Project
You can check this section of the documentation to ensure all SEO capabilities are properly enabled.
You can add a custom domain using:
- Entri (native to Lovable)
- Netlify
- Vercel
- Namecheap
You can check this section of the documentation for more information.
When your project is ready, publish it to generate a shareable URL. This makes it easy to showcase your application or share it with collaborators and stakeholders.
You can refer to this section of the documentation for more information.