The Workflow
- Build your backend with Backdrift
- Export the Design Doc
- Paste into Lovable with your UI requirements
- Get a working, connected application
Step-by-Step
1. Build Your Backend
Create a project in Backdrift and deploy it:2. Get the Design Doc
From your project’s Artifacts tab:- Click Design Doc
- Copy to clipboard or download
3. Open Lovable
Go to lovable.dev and start a new project.4. Paste and Prompt
In Lovable’s chat, paste:5. Iterate
Lovable generates a React app. Continue prompting:What Lovable Gets
The Design Doc tells Lovable:| Information | How Lovable Uses It |
|---|---|
| API URL | Configures fetch calls |
| Auth headers | Sets up authorization |
| TypeScript types | Types all API responses |
| Endpoints | Knows what to call and when |
| Entity relationships | Understands data structure |
Example: E-commerce Dashboard
Backend Prompt (Backdrift)
Frontend Prompt (Lovable)
Authentication
The Design Doc includes auth flow documentation. Lovable can generate:- Login and signup pages
- Protected routes
- Token storage and refresh
- User profile display
File Uploads
If your backend supports file storage:- Request a signed upload URL from your API
- Upload directly to storage
- Save the file reference
Tips for Better Results
Be Specific About Layout
Be Specific About Layout
❌ “Add a products page”
✅ “Add a products page with a grid of cards showing image, name, price. Include search, category filter, and sort by price.”
Reference the Design Doc
Reference the Design Doc
“Using the Task entity from the API, build a Kanban board grouped by status.”
Iterate in Steps
Iterate in Steps
Build one feature at a time. Test, then add more.
Specify Components
Specify Components
“Use a shadcn/ui DataTable for the orders list with sorting and pagination.”
Deployment
After building in Lovable:- Export the code to GitHub
- Deploy to Vercel, Netlify, or any static host
- Set environment variables for your API URL
Bolt Integration
Build with Bolt instead.
