تعلّم Lovable من الصفر إلى احتراف بناء التطبيقات
بدون أن تكتب سطر برمجة واحد
منصة Lovable تحوّل فكرتك المكتوبة بالكلام العادي إلى تطبيق ويب حقيقي متكامل — واجهة، قاعدة بيانات، تسجيل دخول، ومدفوعات. هذا المسار يأخذك بيدك خطوة بخطوة، بأمثلة حقيقية وقوالب جاهزة للنسخ، حتى تُطلِق منتجك الأول بثقة.

لمن هذا الكورس؟
روّاد الأعمال
تريد إطلاق فكرتك (MVP) بسرعة لاختبار السوق قبل توظيف مبرمجين.
المصمّمون
تحوّل تصاميمك في Figma إلى منتج حيّ قابل للاستخدام والنشر.
مديرو المنتجات
تبني أدوات داخلية ولوحات تحكّم دون انتظار فريق التطوير.
أصحاب الأعمال
تبني نظام حجوزات أو متجراً أو بوابة عملاء لمشروعك الخاص.
صنّاع المحتوى
تطلق أدوات وتطبيقات صغيرة لجمهورك وتحقّق منها دخلاً.
المتعلّمون
تريد دخول عالم بناء البرمجيات من أسهل باب وأكثره عملية.
ماذا ستتقن بنهاية المسار؟
- فهم كل ميزة في Lovable ومتى تستخدمها بالضبط (وليس مجرد عناوين عامة).
- كتابة Prompts احترافية تُخرج لك ما تريده من المحاولة الأولى بدل عشر محاولات فاشلة.
- ربط قاعدة بيانات وتسجيل دخول ومدفوعات حقيقية لتطبيقك — كل ذلك بالكلام.
- النشر على دومين خاص بك، وحماية تطبيقك قبل الإطلاق.
- التعامل مع الأخطاء والسلوك غير المتوقع كمحترف بدل الدوران في حلقة لا تنتهي.
- بناء مشروع SaaS متكامل من البداية للنهاية باتّباع القوالب المرفقة.
لأنه لا يعلّمك «الأزرار» فقط، بل طريقة التفكير التي تفصل بين من يُطلق منتجاً فعلياً ومن يبقى عالقاً. كل وحدة فيها أمثلة واقعية وقوالب جاهزة وتمارين تفاعلية، والمعرفة هنا تختصر عليك أسابيع من التجربة والخطأ — وآلاف الدولارات كانت ستذهب لمبرمج خارجي.
كيف تستخدم هذا الكورس بفعالية
تابع بالترتيب
الوحدات مبنية فوق بعضها. لا تقفز للمدفوعات قبل أن تتقن الـ Prompts.
طبّق فوراً
افتح Lovable في تبويب آخر وطبّق كل قالب أثناء قراءته. التعلّم باليد لا بالعين.
حلّ الاختبارات
في نهاية كل وحدة اختبار قصير يثبّت المعلومة. أجب قبل المتابعة.
علّم كـ«مكتمل»
اضغط زر «أكملت هذه الوحدة» ليُحفظ تقدّمك تلقائياً وتتابع من حيث توقّفت.
يحفظ الموقع تقدّمك في متصفّحك. أغلِق الصفحة وعُد متى شئت — ستجد علامات الإكمال وشريط التقدّم كما تركتها.
ما هو Lovable؟
تخيّل أنك تتحدّث إلى «مهندس برمجيات» لا يكلّ ولا يملّ، تصف له ما تريد بلغتك العادية، فيبني لك التطبيق كاملاً أمام عينيك في دقائق. هذا هو Lovable باختصار.

Lovable (الموقع: lovable.dev) هو منصة ذكاء اصطناعي لبناء التطبيقات الكاملة (Full‑stack). أنت تكتب وصفاً بالكلام الطبيعي — بالعربية أو الإنجليزية — والمنصة تُولّد لك كوداً حقيقياً قابلاً للتعديل والامتلاك، ثم تنشره مباشرة على الإنترنت.
بدأ المشروع باسم «GPT Engineer» مفتوح المصدر وحظي بعشرات الآلاف من النجوم على GitHub، ثم أُطلِقت النسخة التجارية باسم Lovable (أواخر 2024)، وتصدّرت Product Hunt، وحقّقت نموّاً سريعاً جداً ووصلت إلى تقييمٍ بمليارات الدولارات بدعم من كبار المستثمرين. أي أنّ هذا ليس مشروعاً جانبياً — بل أصبح منصّةً يعتمد عليها ملايين المستخدمين حول العالم. (للأرقام المحدّثة راجع lovable.dev.)
لماذا «Full‑stack» مهمة جداً؟
أي تطبيق حقيقي يتكوّن من طبقتين: الواجهة الأمامية (Frontend) وهي ما يراه المستخدم، والخلفية (Backend) وهي العقل الذي يخزّن البيانات ويدير الحسابات والمنطق. كثير من الأدوات تبني الواجهة فقط فتحصل على «صورة جميلة لا تعمل». أما Lovable فيبني الطبقتين معاً:
الواجهة الأمامية
React + Tailwind CSS — تصميم عصري ومتجاوب مع جميع الشاشات تلقائياً.
الخلفية وقاعدة البيانات
تكامل مع Supabase: قاعدة بيانات، تسجيل دخول، تخزين ملفات، ومنطق خادم.
المدفوعات
تكامل مع Stripe لاشتراكات ومدفوعات لمرة واحدة وأسواق متعددة البائعين.
النشر والاستضافة
استضافة مدمجة + إمكانية ربط دومينك الخاص بنقرات.
Lovable ليس أداة «No‑Code» تقليدية
الأدوات التقليدية تخفي الكود خلف «مكعّبات» تسحبها وتُفلتها، وتظلّ سجيناً داخل المنصة. أما Lovable فهجين ذكي:
| الجانب | No‑Code تقليدي | Lovable |
|---|---|---|
| المُخرَج | مكوّنات مغلقة | كود حقيقي تملكه |
| التخصيص | محدود بما تتيحه المنصة | غير محدود عبر الكود |
| الانتقال لاحقاً | شبه مستحيل | تصدير إلى GitHub بحرية |
| طريقة العمل | سحب وإفلات | محادثة بالكلام الطبيعي |
متى تستخدم Lovable… ومتى لا؟
الصفحات التعريفية، النماذج الأولية (MVP)، الأدوات الداخلية، تطبيقات SaaS البسيطة والمتوسطة، بوابات العملاء، لوحات التحكّم، واختبار الأفكار بسرعة.
الأنظمة بالغة التعقيد، التطبيقات ذات الحركة الضخمة جداً (100 ألف مستخدم يومياً+)، والمتطلبات الأمنية الحسّاسة. في هذه الحالات استخدمه مع مراجعة مبرمج، أو انتقل لأدوات مثل Cursor لاحقاً (الكود قابل للتصدير، فلا تخسر شيئاً).
اختبر فهمك
سؤالان سريعان لتثبيت المفهوم.
كيف يعمل المحرّك؟
قبل أن تكتب أوّل Prompt، افهم ما يحدث «خلف الستار». فهمك لطريقة تفكير Lovable هو الفرق بين نتائج مذهلة وإحباط متكرّر.
دورة العمل الأساسية (الحلقة السحرية)
كل ما تفعله في Lovable يدور في حلقة بسيطة من أربع خطوات تتكرّر باستمرار:
تصِف (Prompt)
تكتب ما تريد بالكلام. مثال: «أضف صفحة تواصل فيها نموذج بالاسم والبريد والرسالة».
يخطّط ويبني
يحلّل الذكاء الاصطناعي طلبك، يضع خطة مفاهيمية، ثم يكتب/يعدّل الملفات اللازمة.
تعاين (Preview)
تظهر النتيجة فوراً في معاينة حيّة على جانب الشاشة لتجرّبها بنفسك.
تكرّر (Iterate)
تطلب تعديلاً صغيراً، تعاين، وهكذا… كل تعديل خطوة صغيرة نحو منتجك النهائي.
«تغيير واحد، ثم تحقّق». لا تطلب خمس ميزات دفعة واحدة. الطلبات الصغيرة القابلة للاختبار تُنتج نتائج أدقّ وأسهل في التصحيح.
الذكاء الاصطناعي ليس «منفّذ أوامر»… بل شريك
منذ تحديث 2.0 (منتصف 2025) أصبح Lovable يعمل بنمط «الوكيل المستقل» (Agent) افتراضياً. هذا ليس مجرّد روبوت محادثة يكتب كوداً، بل نظام يستطيع:
- قراءة مشروعك بالكامل لفهم السياق قبل التعديل.
- تفحّص السجلّات (Logs) لاكتشاف أسباب الأخطاء بنفسه.
- البحث في الويب عن حلول عند الحاجة.
- توليد الصور وإجراء تعديلات دقيقة على عدّة ملفات في وقت واحد.
هذا التطوّر مهم لأنه أنهى عصر «التعديلات الهشّة» التي كانت تكسر أجزاء أخرى من التطبيق في النسخ القديمة.
الأوضاع الثلاثة في سطر واحد
سنفصّلها لاحقاً في الوحدة 07، لكن تعرّف عليها الآن:
Plan / Chat
للتفكير والتخطيط والنقاش وحلّ المشاكل — دون أن يُعدّل أي كود.
Agent
للبناء الفعلي: ينفّذ، يصحّح، ويعدّل تلقائياً.
Visual Edits
للتعديلات الدقيقة بالنقر على العناصر مباشرة دون كتابة Prompt.
عند كل تعديل، قد يُعيد Lovable كتابة الملف بالكامل وليس السطر المطلوب فقط. لهذا السبب يُفضَّل إخباره صراحةً بما لا يجب أن يلمسه («لا تعدّل ملف التخطيط الرئيسي»). ستتقن هذه الحيلة في وحدة الـ Prompts.
اختبر فهمك
ثبّت دورة العمل والقاعدة الذهبية.
جولة في الواجهة
لن تشعر بالضياع بعد اليوم. سنفكّك كل ركن في شاشة Lovable ونعرف وظيفته بالضبط.

المناطق الرئيسية في الشاشة
لوحة المحادثة (Chat)
على جانب الشاشة — هنا تكتب طلباتك وترى ردود الذكاء الاصطناعي وخطواته. هي مركز قيادتك.
المعاينة الحيّة (Preview)
الجزء الأكبر — يعرض تطبيقك وهو يعمل لحظياً. كل تعديل يظهر هنا فوراً.
عرض التصميم (Design View)
طبقة بصرية أُضيفت في النسخة 2.0 — تعدّل الألوان والخطوط والمسافات بأدوات شبيهة بـ Figma.
عرض الكود وهيكل المشروع
لمن يريد الاطّلاع — ترى الملفات الفعلية. لست مضطراً لفهمها، لكن من الجيد معرفة وجودها.
أدوات لا بدّ أن تعرفها
ابدأ دائماً بمشروع فارغ وابنِ تدريجياً. هذا يساعد الذكاء الاصطناعي على استيعاب المفاهيم الأساسية أولاً قبل الدخول في التفاصيل، ويعطيك نتائج أنظف من «اطلب كل شيء دفعة واحدة».
أين تقضي وقتك فعلاً؟
المفاجأة: المحترفون لا يقضون معظم وقتهم في كتابة الأوامر النصية ولا في محرّر الكود. بل في الطبقة البصرية — يضبطون التفاصيل الصغيرة التي تجعل المنتج «يبدو ويشعر صحيحاً». الكلام يبني الهيكل، والنقر البصري يصقل التفاصيل.
اختبر فهمك
هل تعرف أدواتك؟
الأسعار والكريدِت (Credits)
المال موضوع حسّاس. سنشرح كل خطة بصدق، ونكشف «التكاليف الخفيّة» التي لا يخبرك بها أحد، ونعطيك حاسبة تفاعلية لتعرف ميزانيتك الحقيقية قبل أن تبدأ.
بصراحة: لبناء منتج جادّ ومتكامل يتطلّب Lovable اشتراكًا مدفوعًا. لكنك لست مضطرًّا للدفع لتبدأ — جرّب فكرتك بالنسخة المجّانية المحدودة أولًا، وعبر أدوات مجّانية أخرى، وارتقِ للمدفوع فقط بعد أن تتأكّد أنّ الأداة تناسب مشروعك.
ابدأ مجّانًا (قبل أي دفع)
الخطة المجّانية في Lovable
٥ كريدِت يومية بلا بطاقة ائتمان — كافية لتجرّب المنصّة وتبني نموذجاً صغيراً. ابدأ منها لتعرف هل تناسبك. صفحة الأسعار الرسمية.
Google AI Studio (مجّاني)
بيئة مجّانية في المتصفّح تبني بها تطبيقات بالذكاء (Gemini) مع خلفية Firebase مجّانية — ممتازة للتمرّن على نفس المهارة بلا تكلفة. aistudio.google.com. (ملاحظة: في الطبقة المجّانية قد تُستخدَم مدخلاتك لتحسين نماذج Google.)
أدوات أخرى بطبقة مجّانية
Bolt.new وv0 من Vercel وReplit — كلّها توفّر طبقة مجّانية لتجرّب أسلوب «صِف فيُبنى» قبل الالتزام بالدفع.
هذا المحتوى للأغراض التعليمية وليس استشارة مهنية. الأسعار والباقات وأسماؤها تتغيّر باستمرار — اعتمد دائمًا على الصفحات الرسمية للأرقام المحدّثة.
ما هي الـ «Credits» أصلاً؟
الكريدِت هي «وقود» المنصة. في كل مرة تطلب من الذكاء الاصطناعي أن يبني أو يعدّل شيئاً، تُستهلك كمية منها. كلّما كان الطلب أكبر وأعقد، استهلك أكثر. لهذا فإنّ كتابة Prompts دقيقة لا تختصر وقتك فقط، بل تختصر مالك أيضاً — لأنها تقلّل المحاولات الفاشلة.
مقارنة الخطط المدفوعة (ترقية اختيارية)
الخطة المجانية — $0
- 5 كريدِت يومياً — كافية لتجربة المنصة وبناء نماذج صغيرة.
- تُنشَر على رابط فرعي (yourapp.lovable.app) مع شعار Lovable.
- أكرم من معظم المنافسين في الطبقة المجّانية. الأسعار الرسمية.
اعتبرها «تجربة قيادة»: استخدمها للإجابة عن سؤال «هل يستطيع Lovable بناء ما أريد؟» — لا لبناء منتجك الحقيقي، لأن حدود التوليد ستُحبطك.
خطة Pro — تبدأ من $25/شهر
- Pro 100 ($25): 100 كريدِت شهرياً + 5 يومياً (حتى ~150/شهر). الخيار الأمثل لمعظم المستقلّين.
- خطط أعلى (تبدأ من ~$100/شهر): كريدِت أكثر لمن يبني بنشاط أو يدير عدّة مشاريع. (تتغيّر الأسماء والأسعار — راجع الصفحة الرسمية.)
- دومينات مخصّصة غير محدودة + إزالة شعار Lovable.
إن كنت تبني مشروعاً واحداً جاداً وتريد دومينك الخاص بلا شعار — فـ Pro 100 هي «المنطقة الذهبية» لمعظم الناس.
خطة Business — $50/شهر
- كل مزايا Pro + دخول موحّد (SSO) للشركات.
- عدم استخدام بياناتك لتدريب الذكاء الاصطناعي (Data training opt‑out).
- مشاريع مقيّدة الوصول، قوالب تصميم لتوحيد مخرجات الفريق.
- تحديد سقف كريدِت لكل عضو في الفريق.
SSO وحماية الخصوصية شرطان أساسيان في كثير من بيئات الشركات. التسعير مشترك للفريق وليس لكل مستخدم.
خطة Enterprise — تسعير مخصّص
- متطلبات أمان وامتثال متقدّمة.
- دعم مخصّص وحدود مرنة حسب حجم المؤسسة.
- تتواصل مع فريق المبيعات لتفصيل احتياجك.
⚠️ التكاليف الخفيّة (TCO) — اقرأ هذا بعناية
السعر المعلَن ($25–50) لا يمثّل تكلفتك الحقيقية لمشروع إنتاجي. إليك ما يُضاف عادة:
| البند | التكلفة التقريبية | متى تحتاجه؟ |
|---|---|---|
| Supabase Pro (قاعدة بيانات إنتاجية) | ~$25/شهر | عند تجاوز الطبقة المجّانية — الأسعار |
| دومين خاص (.com) | ~$12/سنة | للمظهر الاحترافي عند الإطلاق |
| خدمة البريد (Resend / SendGrid) | $0–20/شهر | لرسائل التحقّق والإشعارات |
| رسوم Stripe | ~٢.٩٪ + $0.30 | عند استقبال مدفوعات (تختلف حسب البلد — stripe.com) |
قارِن هذا كلّه بالطريقة التقليدية: توظيف مبرمج بـ 15,000–50,000 دولار مقدّماً + استضافة شهرية. حينها تبدو اقتصاديات Lovable مذهلة فعلاً — حتى مع التكاليف الخفيّة.
اختبر فهمك
هل فهمت اقتصاديات المنصة؟
فنّ كتابة الـ Prompts
هذه الوحدة وحدها تستحقّ ثمن الكورس. الفرق بين من يبني منتجاً في ساعة ومن يدور في حلقة إحباط لأسبوع هو جودة الطلب. ستتعلّم هنا منهجية مثبتة، لا حظّاً.

عامِل الذكاء الاصطناعي كشريك هندسي ذكيّ لكنه «لا يعرف إلا ما تخبره به». الوضوح والتفصيل = نتائج أفضل. الغموض = تخمين وأخطاء.
القاعدة الثلاثية: «أين، ماذا، وما لا تلمسه»
قُل أين
حدّد الصفحة أو العنصر بدقّة: «في صفحة /dashboard» أو «في زرّ التسجيل».
قُل ماذا
اشرح السلوك المتوقّع بوضوح: «عند الضغط، يفتح نافذة تأكيد».
قُل ما لا تلمسه
ضع حواجز حماية: «لا تعدّل ملف التخطيط الرئيسي /Layout».
القالب الذهبي لبدء مشروع جديد
استخدم هذا الهيكل المثبت في أوّل Prompt لأي مشروع. انسخه وعدّل محتواه:
I need a [type] web application with:
TECH STACK:
- Frontend: React + Tailwind CSS, responsive, mobile-first
- Auth: email/password + Google sign-in
- Database: Supabase
CORE FEATURES:
- [main feature 1]
- [main feature 2]
- [secondary feature]
DESIGN:
- Clean, modern, [your style: minimal / playful / corporate]
- Primary color: [#hex], rounded corners, generous spacing
Start ONLY with the landing page containing:
- A hero section with headline, subtext, and a "Get Started" button
- A features section with 3 cards
- A simple footer
Do not build the dashboard yet. Use realistic placeholder content,
not lorem ipsum.طلبنا البدء بصفحة واحدة فقط («ابدأ بالصفحة الرئيسية فقط، لا تبنِ لوحة التحكّم بعد») + محتوى واقعي بدل النصوص الوهمية. هذا يمنحك أساساً نظيفاً تبني عليه.
خمس عادات تفصلك عن المحترفين
- فكّر بالمكوّنات: اطلب «بطاقة منتج» مرة واحدة بشكل مثالي، ثم اطلب تكرارها — بدل وصف كل بطاقة على حدة.
- استخدم محتوى حقيقياً: الأسماء والأسعار والنصوص الواقعية تجعل النتيجة أقرب للحقيقة وتكشف مشاكل التصميم مبكراً.
- كرّر التعليمات المهمّة: ذاكرة الذكاء الاصطناعي محدودة. أعِد ذكر القيد المهمّ في كل Prompt («تذكّر: لا تغيّر تصميم الهيدر»).
- تكرار صغير: «تغيير واحد ثم تحقّق» — لا تطلب خمس ميزات معاً.
- أرفق صوراً: لوصف خطأ بصري أو شكل مطلوب، أرفق لقطة شاشة. الصورة أبلغ من ألف كلمة.
تقنية متقدّمة: «Meta‑Prompting»
بدل أن تكتب الطلب يدوياً وتتمنّى الأفضل، استخدم الذكاء الاصطناعي نفسه (مثل ChatGPT أو Claude) ليحسّن طلبك قبل لصقه في Lovable:
أريد بناء تطبيق [وصف فكرتك بإيجاز]. صُغ لي Prompt احترافياً
ومفصّلاً بالإنجليزية لمنصة Lovable يتضمّن: نوع التطبيق، التقنيات،
المستخدمين وأدوارهم، الصفحات الأساسية، والميزات — مرتّبة بأولوية
منطقية للبناء. اجعله واضحاً ومحدّداً قدر الإمكان.تقنية أقوى: «Reverse Meta‑Prompting»
بعد أن تواجه خطأً وتحلّه، اطلب من الذكاء الاصطناعي أن يوثّق سبب المشكلة وحلّها ليصبح طلبك المستقبلي أدقّ. أنت تبني حلقة تحسين ذاتية:
راجِع هذا الطلب الذي استخدمته، واشرح لماذا أنتج سلوكاً غير متوقّع،
ثم اقترح صيغة محسّنة منه تتجنّب نفس المشكلة مستقبلاً.عندما يستمرّ الذكاء الاصطناعي في تجاهل نقطة، نمط «I am frustrated…» («أنا محبَط لأن الزر ما زال لا يعمل، ركّز على هذه المشكلة فقط») يدفعه أحياناً للتركيز بشكل أفضل! نعم، هذه نصيحة موثّقة فعلاً.
اختبر فهمك
القاعدة الثلاثية وأكثر.
ملف المعرفة (Knowledge File)
إن كان الـ Prompt هو الرسالة، فملف المعرفة هو «دماغ مشروعك». إتقانه يقلّل الأخطاء و«الهلوسة» بشكل جذري.
لماذا هو مهمّ إلى هذه الدرجة؟
ملف المعرفة هو مستند يُرسَل مع كل طلب تلقائياً، فيمنح الذكاء الاصطناعي السياق الكامل لمشروعك في كل مرة. بدونه، أنت تذكّره بكل شيء يدوياً في كل رسالة. معه، يفهم رؤيتك ومستخدميك وقواعدك دون أن تكرّرها.
تخيّل موظفاً جديداً يبدأ كل صباح بذاكرة فارغة. ملف المعرفة هو «دليل التعريف» الذي يقرأه كل صباح ليتذكّر من أنت وماذا تبني ولماذا.
ماذا تضع فيه؟
- نظرة عامة: ما الذي تبنيه ولمن، وما المشكلة التي يحلّها.
- المستخدمون وأدوارهم: مثال — «مستخدم بدور Investor يرى هذا المكوّن، لكن Admin لا يراه».
- التقنيات المستخدمة: React، Supabase، إلخ.
- تدفّق المستخدم (User Flow): كيف يتنقّل الشخص داخل التطبيق.
- الإرشادات البصرية: الألوان، الخطوط، الطابع العام.
- قواعد وحواجز: «لا تعدّل ملف X»، «استخدم دائماً مكوّنات Tailwind الجاهزة».
قالب جاهز لملف المعرفة
# Project: [App Name]
## Overview
[One paragraph: what this app does and who it's for.]
## Users & Roles
- Admin: manages everything, sees all data.
- Member: uses core features, sees own data only.
- Guest: read-only landing pages.
## Tech Stack
- React + Tailwind CSS (mobile-first, responsive)
- Supabase (database + auth)
- Stripe (subscriptions)
## Core User Flow
1. Visitor lands on homepage -> clicks "Sign up"
2. Creates account -> redirected to /dashboard
3. From dashboard, can [main action]
## Design Guidelines
- Primary: #FF6A5E | Background: light, lots of whitespace
- Font: clean sans-serif | Rounded corners, soft shadows
## Rules (do NOT break)
- Do not modify /components/Layout.tsx
- Always use Tailwind breakpoints, never custom CSS
- Keep all currency in USD with 2 decimalsلديك مشروع قائم بلا ملف معرفة؟ استخدم وضع Plan واطلب: «Generate a Knowledge file for my project based on the features I've already implemented» — فيكتبه لك تلقائياً من واقع مشروعك.
اختبر فهمك
دماغ المشروع.
الأوضاع الثلاثة: متى تستخدم كلًّا منها
استخدام الوضع الخطأ في اللحظة الخطأ يهدر وقتك وكريدِتك. هنا تتعلّم اختيار الأداة الصحيحة لكل مهمّة.

وضع التخطيط والنقاش
شريك تفكير. تتناقشان وتخطّطان وتصحّحان معاً دون أن يُعدّل أي كود. مثالي لـ:
- التفكير في بنية ميزة جديدة قبل بنائها.
- تشخيص سبب خطأ («لماذا لا يعمل هذا؟») دون المخاطرة بتغييرات.
- توليد ملف المعرفة أو خطة عمل.
صحّح في وضع Plan أولاً. افهم المشكلة، ثم انتقل لـ Agent للتنفيذ. هذا يمنع التعديلات العشوائية المتسرّعة.
وضع الوكيل (البناء)
الوضع الافتراضي منذ يوليو 2025. نظام مستقلّ يبني فعلياً: يبحث في مشروعك، يقرأ السجلّات، يصحّح الأخطاء بنفسه، ويعدّل عدّة ملفات بدقّة. استخدمه لـ:
- بناء الميزات وتنفيذ التغييرات.
- إصلاح الأخطاء بعد فهمها في وضع Plan.
- أي مهمة تتطلّب «تنفيذاً» لا «نقاشاً».
التعديلات البصرية
تنقر على عنصر مباشرة في المعاينة وتعدّله دون كتابة Prompt ودون استهلاك كريدِت توليد عادةً. مثالي لـ:
- تغيير نصّ، لون، حجم خطّ، أو مسافة بسرعة.
- الصقل النهائي للتفاصيل الدقيقة.
- كل من يفضّل النقر على الكتابة.
بدل أن تكتب «اجعل العنوان أكبر قليلاً ولونه أغمق» وتنتظر، انقر العنوان وعدّله بصرياً في ثوانٍ.
خلاصة الاختيار
| المهمة | الوضع الأمثل |
|---|---|
| التخطيط والتفكير في ميزة | Plan |
| تشخيص خطأ قبل إصلاحه | Plan |
| بناء ميزة أو تنفيذ تغيير | Agent |
| تعديل لون/نص/مسافة بسرعة | Visual Edits |
اختبر فهمك
الأداة الصحيحة لكل مهمة.
قاعدة البيانات والحسابات (Supabase)
هنا يتحوّل تطبيقك من «صفحة جميلة» إلى «منتج حقيقي» يحفظ البيانات ويعرف مستخدميه. لا تقلق — سنشرح كل شيء بلغة بسيطة.

ما «قاعدة البيانات» أصلاً؟ (بلا تعقيد)
تخيّل جدول Excel ضخماً ومنظّماً يعيش على الإنترنت. كل صفّ سجلّ (مستخدم، طلب، منتج…) وكل عمود معلومة. قاعدة البيانات هي ذاكرة تطبيقك الدائمة: عندما يسجّل مستخدم حساباً أو يضيف منتجاً، يُحفَظ هنا ويبقى حتى لو أغلق المتصفّح.
و«المصادقة» (Authentication) ببساطة: نظام تسجيل الدخول الذي يتأكّد «من أنت» — بريد وكلمة مرور، أو دخول عبر Google.
ما هو Supabase ولماذا يستخدمه Lovable؟
Supabase هو خدمة الخلفية التي يعتمد عليها Lovable لتوفير:
قاعدة بيانات PostgreSQL
قوية وموثوقة، مع قدرات لحظية (real‑time).
تسجيل الدخول
بريد/كلمة مرور + مزوّدو OAuth مثل Google.
تخزين الملفات
صور المستخدمين، المرفقات، الملفات.
Edge Functions
منطق خادم بسيط للمهام التلقائية.
أي ميزة تحتاج تخزين بيانات أو تسجيل دخول تتطلّب ربط Supabase. الطبقة المجانية مناسبة للتطوير فقط؛ مشروعك الإنتاجي سيحتاج غالباً Supabase Pro (~$25/شهر) عند النموّ.
كيف تربطه؟ خطوات عملية
من قائمة التكاملات
افتح Integrations في مشروعك واختر Supabase، ثم اربط حسابك (أو أنشئ واحداً مجانياً).
اطلب الميزة بالكلام
مثال: «أضف تسجيل دخول بالبريد وكلمة المرور، وبعد الدخول وجّه المستخدم إلى /dashboard».
دع Lovable يبني الجداول
سيقترح هيكل البيانات (الجداول والأعمدة) وينفّذه. راجِعه وأكّد.
اختبر
سجّل حساباً تجريبياً وتأكّد أن البيانات تُحفَظ وأنّ الأدوار تعمل.
قالب Prompt لإضافة الحسابات
Add authentication using Supabase:
- Email/password sign-up and login + Google sign-in
- After login, redirect users to /dashboard
- Create a "profiles" table: id, full_name, email, role (default: "member"), created_at
- Protect /dashboard so only logged-in users can access it
- Add a "Log out" button in the top navigation
Do not change the public landing page layout.اطلب دائماً تفعيل «صلاحيات مستوى الصفّ» (Row Level Security) في Supabase ليرى كل مستخدم بياناته فقط. سنعمّق هذا في وحدة الأمان.
اختبر فهمك
أساسيات الخلفية.
استقبال المدفوعات (Stripe)
أجمل تطبيق بلا وسيلة دفع هو هواية. هنا تتعلّم تحويل تطبيقك إلى مصدر دخل حقيقي.


ماذا يدعم تكامل Stripe في Lovable؟
اشتراكات متكرّرة
خطط شهرية/سنوية مع دعم الـ Webhooks للتفعيل التلقائي.
دفعة لمرة واحدة
بيع منتج أو خدمة بسعر ثابت مباشرة.
أسواق متعدّدة البائعين
عبر Stripe Connect، لكل بائع حسابه المربوط الخاص.
Stripe يأخذ تقريباً ٢.٩٪ + $0.30 لكل عملية (السعر القياسي في الولايات المتحدة — يختلف حسب البلد ووسيلة الدفع؛ راجع stripe.com). مثال تقريبي: مبيعات بـ 10,000$ شهرياً ≈ 290–590$ رسوم معالجة. لا تفرض Lovable رسوم منصّة إضافية على المدفوعات.
خطوات الربط
أنشئ حساب Stripe
مجاني، وتحصل على «مفاتيح API» من لوحة تحكّم Stripe.
اربطه عبر التكاملات
الصق المفاتيح في إعدادات التكامل داخل Lovable.
اطلب صفحة الأسعار بالكلام
صف الخطط وأسعارها، ودع Lovable يبني الأزرار وربط الدفع.
اختبر بوضع التجربة
Stripe يوفّر «بطاقات اختبار» لتجرّب الدفع دون مال حقيقي قبل الإطلاق.
قالب Prompt لصفحة اشتراكات
Add a Pricing page with Stripe subscriptions:
- Three plans: Free ($0), Pro ($19/mo), Business ($49/mo)
- Each plan card lists its features and a "Subscribe" button
- On subscribe, open Stripe Checkout for the selected plan
- After successful payment, mark the user's "plan" field in the
profiles table and unlock Pro features
- Use Stripe test mode for now
Keep the existing dashboard untouched.ستحتاج لتفعيل حسابك في Stripe (معلومات النشاط والحساب البنكي)، والانتباه إلى الضرائب والامتثال في بلدك. اختبر كل المسار جيداً في وضع التجربة أولاً.
⚖️ هذا المحتوى للأغراض التعليمية وليس استشارة قانونية أو مالية أو ضريبية — راجع مختصاً في بلدك.
اختبر فهمك
المال يدخل.
النشر، الدومين، والأمان
لحظة الإطلاق! سنخرج تطبيقك إلى العالم على دومينك الخاص، ونحميه قبل أن يراه أحد.

النشر بنقرة
اضغط زر Publish فيُرفَع تطبيقك مباشرة على رابط فرعي مثل yourapp.lovable.app. يصبح حيّاً على الإنترنت في ثوانٍ، وأي شخص يملك الرابط يستطيع استخدامه.
رابط lovable.app ممتاز للاختبار والمشاركة السريعة، لكنه ليس احترافياً بما يكفي لإطلاق لعملاء أو مستثمرين. هنا يأتي دور الدومين الخاص.
ربط دومينك الخاص
اشترِ دومين
من Namecheap أو GoDaddy أو غيرهما (~$12/سنة لـ .com). الدومين غير مشمول في اشتراك Lovable.
افتح إعدادات الدومين في Lovable
متاح في الخطط المدفوعة (Pro فأعلى) — ودومينات غير محدودة.
اضبط سجلّات DNS
تنسخ القيم التي يعطيك إياها Lovable وتضعها في لوحة الدومين. خطوة بسيطة موثّقة.
انتظر التفعيل
قد يستغرق الانتشار دقائق إلى ساعات، ثم يصبح تطبيقك على دومينك مع شهادة HTTPS تلقائياً.
🔒 الأمان قبل الإطلاق — لا تتهاون هنا
بعد عددٍ من الحوادث الأمنية التي طالت مواقع مستضافة على Lovable، أضافت المنصّة فحوصات أمان. افحص تطبيقك دائماً قبل النشر العلني. (هذا المحتوى تعليمي وليس استشارة أمنية احترافية؛ للأنظمة الحسّاسة استعِن بمختصّ.)
صلاحيات الصفوف (RLS)
تأكّد أن كل مستخدم يصل لبياناته فقط، لا لبيانات الآخرين.
المفاتيح السرّية
لا تضع مفاتيح API الحسّاسة في الواجهة الأمامية أبداً — اطلب وضعها في أسرار الخادم.
التحقّق من المدخلات
تحقّق من البيانات التي يرسلها المستخدم لمنع المدخلات الخبيثة.
فحص الأمان المدمج
استخدم أداة فحص الأمان في Lovable قبل الضغط على Publish.
Before launch, run a security review:
- Ensure Row Level Security (RLS) is enabled on ALL Supabase tables
- Confirm no secret API keys are exposed in the frontend
- Validate all user inputs on forms
- Make sure protected pages reject logged-out users
List any security issues you find and fix them.اختبر فهمك
جاهز للإطلاق؟
GitHub وملكية الكود
أكبر ميزة تحرّرية في Lovable: أنت تملك كودك. لست سجيناً لدى المنصة.
ماذا يعني «تصدير إلى GitHub»؟
GitHub هو «خزانة» عالمية لحفظ الكود ومشاركته. Lovable يتيح ربط مشروعك بمستودع GitHub، فيُزامَن الكود تلقائياً. هذا يعني:
- تملك الكود فعلياً: نسخة كاملة بين يديك، لا حبيسة المنصة.
- نسخ احتياطية ونُسخ زمنية: سجلّ كامل لكل تغيير.
- طريق للنموّ: يمكنك البدء على Lovable ثم الانتقال لكود مخصّص (أو أدوات مثل Cursor) عند التوسّع، دون خسارة عملك.
- تعاون: يعمل مبرمجون معك على نفس المشروع لاحقاً.
Lovable يبني تطبيقات جديدة من الصفر. لا يمكنك حالياً استيراد مستودع GitHub قائم لتعديله داخل Lovable. الاتجاه هو من Lovable إلى GitHub، لا العكس.
اختبارات واقعية تُظهر أن Lovable مثالي لمرحلة 0→1 (من الفكرة لأول نسخة). للتطبيقات الضخمة جداً أو المعقّدة جداً، خطّط للانتقال لكود مخصّص لاحقاً. التصدير إلى GitHub يجعل هذا الانتقال ممكناً وسلساً.
اختبر فهمك
من يملك الكود؟
حلّ المشاكل والتصحيح كالمحترفين
ستواجه أخطاءً. هذا طبيعي. الفرق أنّ المحترف يحلّها بهدوء ومنهجية، بينما يدور المبتدئ في حلقة إحباط. ستصبح من الأوّلين.

نوعان من المشاكل
أخطاء صريحة (Errors)
الكود يتوقّف ويظهر رسالة خطأ. غالباً يحلّها Agent تلقائياً عند إخباره.
سلوك غير متوقّع
الكود يعمل بلا خطأ، لكن النتيجة ليست ما أردت. الأصعب — ويحتاج منهجية.
منهجية التصحيح في 5 خطوات
أعِد تتبّع خطواتك
راجِع ما طلبته أصلاً. هل كان طلبك واضحاً؟ أين بدأ الانحراف؟
فكّك المشكلة
حدّد القسم المعطوب بدقّة. لا تقل «لا يعمل»، بل «زر الحفظ في صفحة الإعدادات لا يحفظ».
استخدم الصور
أرفق لقطة للنتيجة الحالية مقابل المطلوب. الفرق البصري يوضّح المشكلة فوراً.
شخّص في وضع Plan
اسأل «لماذا يحدث هذا؟» في Plan قبل أي تعديل، لتفهم السبب الجذري.
أرجِع إذا لزم
إن تفاقمت الأمور، زر Revert يعيدك لآخر نسخة مستقرّة. لا تتردّد.
قالب Prompt لتشخيص خطأ
Use Chat/Plan mode (do NOT change code yet).
Problem: On the /settings page, clicking "Save" does nothing —
the toast appears but the data is not saved to Supabase.
Expected: clicking Save should update the user's row in "profiles"
and persist after refresh.
Please: 1) explain the likely root cause, 2) list what to check,
3) propose a minimal fix. Then wait for my confirmation.متى تبدأ من جديد؟ (استراتيجية Remix)
أحياناً يكون «الترميم» أغلى من «إعادة البناء». ميزة Remix تنشئ نسخة نظيفة من مشروعك عند نقطة الصفر، فتبدأ بطلبات أفضل ومعرفة أوضح، مستخدماً القديم كمرجع. إعادة البناء ليست فشلاً — بل قرار استراتيجي يتّخذه أفضل البنّائين بوعي.
البناء مع الذكاء الاصطناعي «محادثة لا أمر». سيُسيء الفهم أحياناً، وسيتراجع أحياناً، وقد ينتج شيئاً مختلفاً تماماً. هذا طبيعي. الناجحون هم من يقسّمون العمل لأجزاء صغيرة قابلة للاختبار ويصبرون على التكرار.
اختبر فهمك
هدوء ومنهجية.
دراسات حالة حقيقية
القصص أبلغ من النظريات. إليك أمثلة واقعية — نجاحات ملهمة ودرس تحذيري — لتتعلّم من تجارب الآخرين.
هذه أمثلة توضيحية لأنماط استخدام واقعية؛ الأرقام تقريبية وقد تختلف من حالة لأخرى. خذ منها الدرس لا الرقم الحرفي.
محرّك «العدالة» لضحايا حرائق لوس أنجلوس
شاليني أناندا · أثر اجتماعيبنت شاليني أناندا أداة لمساعدة ضحايا حرائق لوس أنجلوس 2025 على الوصول العادل للموارد والدعم — مستخدمةً Lovable. الدرس: السرعة في البناء تعني أنّ الفكرة الإنسانية تصبح أداة فعلية في أيدي المحتاجين خلال أيام، لا أشهر. عندما تكون الحاجة عاجلة، تكون القدرة على البناء السريع إنقاذاً حرفياً.
توماس: عدّة تطبيقات وتعلّم البرمجة عملياً
جندي ومطوّر كندي · مثابرةتوماس، جندي مشاة كندي، استخدم Lovable لبناء وإطلاق عدّة تطبيقات — منها أداة DummyForms — وفي الطريق أتقن أساسيات الواجهة والخلفية. الدرس: Lovable ليس مجرّد أداة إنتاج، بل مدرسة عملية. كل مشروع علّمه شيئاً، والكميّة (مع التكرار) صنعت الخبرة.
مستثمر مغامر يضاعف إنتاجيته أضعافاً
رأس مال مغامر · إنتاجيةاكتشف مستثمرٌ Lovable فأعاد بناء موقعه، وحسّن أنظمته الخلفية، وضاعف إنتاجيّته أضعافاً. الدرس: حتى غير المبرمجين في أدوار قيادية يستطيعون بناء أدواتهم الخاصة بدل انتظار فريق تقني — فيتحرّكون أسرع ويتحكّمون أكثر.
SaaS MVP في أسابيع بدل أشهر
فريق تطوير · سرعة الإطلاقبنى فريق نسخة SaaS أولية في أسابيع قليلة كانت ستستغرق أشهراً بالطريقة التقليدية — تسجيل دخول (عبر Clerk)، اشتراكات (Stripe)، عمليات قاعدة بيانات، وتكاملات API. الدرس: Lovable يختصر زمن الوصول للسوق بشكل هائل في مرحلة 0→1.
درس تحذيري: مشروع ضخم بعشرات الآلاف من الأسطر
@levelsio · حدود الأداةربط مطوّرٌ مشروع SaaS ضخماً (عشرات الآلاف من الأسطر) عبر GitHub. اقترح Lovable عشرات التغييرات: معظمها صحيح، لكن بعضها كسر وظائف وبعضها أدخل ثغرات أمنية — فاستلزم ساعاتٍ من المراجعة البشرية للتحقّق. الدرس: للمشاريع الضخمة والمعقّدة، الإشراف البشري ضروري. Lovable رائع في البناء السريع، لكنه ليس بديلاً عن المراجعة في الأنظمة الحرجة.
قالب من الواقع: «Monthly Close Copilot»
هذا مثال على Prompt مُهيكَل لأداة محاسبية حقيقية — لاحظ كيف يُعرّف الهدف، الأدوار، والكيانات بدقّة:
Build a web app called "Monthly Close Copilot".
Outcome: Help a small ecommerce business run a consistent monthly
close by assigning tasks, collecting evidence files, and tracking
completion.
Roles:
- Admin: manages templates, users, sees all months.
- Accountant: works tasks, uploads evidence, marks tasks complete.
- Owner: views progress, comments, cannot edit templates.
Entities:
- Company: name, timezone.
- Month: period, status (open/closed).
- Task: title, assignee, status, evidence files, due date.
Start with the Admin dashboard listing months and their progress.الطلب الجيّد «مفصّل في الأماكن الصحيحة»: الهدف، المستخدمون، البيانات، الشاشات، التدفّقات، والقواعد. هذا ما يحوّل فكرة غامضة إلى مواصفات قابلة للبناء.
مشروع كامل خطوة بخطوة
سنبني معاً تطبيق حجز مواعيد كاملاً اسمه «BookEasy» — من صفحة فارغة إلى منتج منشور يستقبل مدفوعات. انسخ كل Prompt بالترتيب وطبّقه في Lovable.

تطبيق يتيح لأصحاب الأنشطة (صالون، عيادة، استشاري) استقبال حجوزات المواعيد أونلاين، وللعملاء حجز موعد ودفع عربون. ثلاثة أدوار: عميل، صاحب نشاط، مدير.
الخطوة 1 — الأساس وملف المعرفة
ابدأ بمشروع فارغ، ثم في وضع Plan اطلب توليد ملف المعرفة:
Use Plan mode. Help me create a Knowledge file for "BookEasy":
- An online appointment booking app.
- Roles: Customer (books appointments), Business Owner (manages
services & availability), Admin (oversees everything).
- Tech: React + Tailwind, Supabase (db + auth), Stripe (deposits).
- Design: clean, modern, trustworthy. Primary color #2F6FED,
rounded cards, lots of whitespace.
Output a complete Knowledge file I can save.الخطوة 2 — الصفحة الرئيسية فقط
Build ONLY the landing page for BookEasy:
- Hero: headline "احجز موعدك في ثوانٍ", subtext, and two buttons
("ابدأ الآن" / "كيف يعمل")
- "How it works" section: 3 steps with icons
- A section showcasing 3 example businesses (use realistic content)
- Footer with links
Make it fully responsive (mobile-first). Do not build auth yet.الخطوة 3 — تسجيل الدخول والأدوار
Add Supabase authentication:
- Email/password + Google sign-in.
- A "profiles" table: id, full_name, role (customer/owner/admin,
default customer), created_at.
- After signup, ask the user to choose: "I want to book" (customer)
or "I own a business" (owner), and save the role.
- Redirect customers to /explore and owners to /dashboard.
- Protect those routes for logged-in users only.
Keep the landing page layout unchanged.الخطوة 4 — لوحة صاحب النشاط
Build the Business Owner dashboard at /dashboard:
- Owner can create "Services": name, duration (minutes), price.
- Owner can set weekly availability (days + time slots).
- Tables in Supabase: services, availability, bookings.
- Show an overview: upcoming bookings list + total revenue this month.
Use Visual Edits-friendly layout: cards, clear sections.
Only the owner role can access this page.الخطوة 5 — تجربة العميل والحجز
Build the customer booking flow:
- /explore: list businesses and their services.
- Clicking a service opens a booking page showing available slots
(from the owner's availability, minus already-booked slots).
- Customer picks a slot, confirms, and a row is added to "bookings"
with status "pending_payment".
- Show the customer their bookings in /my-bookings.
Validate that a slot can't be double-booked.الخطوة 6 — عربون الدفع (Stripe)
Integrate Stripe for booking deposits:
- When a customer confirms a booking, open Stripe Checkout for a
deposit (20% of the service price).
- On successful payment, set the booking status to "confirmed" and
show a success page.
- Use Stripe test mode for now.
Do not change the dashboard or explore pages.الخطوة 7 — الصقل ثم الأمان ثم النشر
1) Polish: add a friendly empty-state for "no bookings yet",
loading spinners, and success toasts.
2) Security review: enable RLS on all tables so customers see only
their bookings and owners see only their business data. Confirm
no secret keys are exposed. Reject logged-out users on protected
pages. List and fix any issues.
3) Confirm everything works, then I will publish to my custom domain.بهذه الخطوات السبع بنيت تطبيق SaaS متكاملاً: صفحة تسويق، حسابات وأدوار، حجوزات، مدفوعات، أمان، ونشر. هذا بالضبط ما كان يكلّف آلاف الدولارات وأسابيع من العمل. غيّر فكرة التطبيق وكرّر نفس الهيكل لأي مشروع آخر.
اختبر فهمك
منهجية البناء.
أفضل الممارسات ومنهجية العمل الاحترافية
الفرق بين شخص «يلعب» مع Lovable وشخص يبني به منتجاً حقيقياً ليس الذكاء — بل المنهجية. هذه هي القواعد التي يتبعها المحترفون لتجنّب إهدار الكريدِت والوقت والأعصاب.
تعامل مع Lovable كأنه مطوّر بشري ذكيّ لكنه حرفيّ جداً: ينفّذ ما تقوله بدقّة، لا ما يدور في رأسك. وضوحُك = جودة النتيجة.
١. اعمل بخطوات صغيرة (Small Iterations)
أكبر خطأ يقع فيه المبتدئون: طلب عشر ميزات في prompt واحد. النتيجة فوضى يصعب تصحيحها. المحترف يطلب تغييراً واحداً، يختبره، ثم ينتقل للتالي.
الطريقة الخاطئة
«ابنِ لي متجراً كاملاً فيه تسجيل دخول، سلّة، مدفوعات، لوحة تحكم، إشعارات، وتقييمات.» — كلّ شيء دفعة واحدة.
الطريقة الصحيحة
ابدأ بصفحة عرض المنتجات فقط. اختبر. ثم أضف السلّة. اختبر. ثم الدفع. خطوة، اختبار، خطوة.
٢. ثبّت الواجهة قبل أن تلمس الـ Backend
ابنِ كل الصفحات والتصميم والتنقّل أولاً ببيانات وهمية (mock data)، وتأكّد أنّ الشكل يعجبك تماماً. بعد ذلك فقط اربط قاعدة البيانات والحسابات. لماذا؟ لأنّ تغيير التصميم بعد ربط الـ backend أصعب وأكثر كلفة بالكريدِت.
الواجهة الثابتة
كل الصفحات + التصميم + التنقّل ببيانات وهمية.
المراجعة البصرية
عدّل الألوان والخطوط والمسافات حتى ترضى تماماً.
الحسابات وقاعدة البيانات
اربط Supabase: تسجيل الدخول والجداول.
المنطق والمدفوعات
الأدوار والصلاحيات ثم Stripe.
الأمان ثم النشر
مراجعة RLS والمفاتيح، ثم الدومين.
٣. حدّد المكان والمطلوب وما لا يُلمَس
عند أي تعديل، أخبر Lovable بثلاثة أمور: أين التغيير، ما هو بالضبط، وما الذي يجب ألّا يتغيّر. هذه الجملة الأخيرة تمنع «الكسر الجانبي» حيث يصلح ميزة فيكسر أخرى.
On the Dashboard page only, change the stats cards to a 3-column grid.
Do NOT touch the sidebar, the navigation, or any other page.٤. صحّح في وضع التفكير (Plan/Chat Mode)
عند ظهور خطأ، لا تطلب الإصلاح فوراً في وضع الوكيل. انتقل إلى Chat/Plan Mode واسأل: «ما سبب هذا الخطأ؟ اشرح قبل أن تصلح.» سيحلّل المشكلة دون لمس الكود، فتفهم الجذر وتتجنّب تكرارها.
إن دار Lovable في حلقة إصلاحٍ فاشلة، اكتب حرفياً: "I am frustrated, this didn't work. STOP. Step back, explain the root cause in plain English, then propose a plan before changing any code." هذه الجملة تكسر الحلقة وتعيد ضبط المنهج.
٥. الأمان قبل النشر — دائماً
قبل ربط الدومين، اطلب مراجعة أمان صريحة. منصّة Lovable تنبّهك أحياناً، لكن المسؤولية مسؤوليتك. أهمّ نقطة: تفعيل RLS على كل الجداول.
٦. Remix و Revert: شبكتا الأمان
Revert
كل تعديل يُحفظ كنقطة. إن أفسد تغييرٌ شيئاً، ارجع بنقرة إلى آخر نسخة سليمة. لا تخف من التجربة.
Remix
إن تشابكت الأمور كثيراً، انسخ المشروع كبداية نظيفة واحتفظ بالأصل. أحياناً البداية الجديدة أسرع من إصلاح فوضى متراكمة.
٧. Meta-prompting: اجعل الذكاء يحسّن طلبك
قبل إرسال prompt مهمّ، اطلب من ChatGPT أو من Chat Mode في Lovable أن «يحسّن ويوضّح هذا الطلب ليفهمه مولّد التطبيقات بدقّة». والعكس (Reverse meta-prompting): بعد حلّ خطأ صعب، اطلب توثيق سببه وحلّه لتضيفه إلى ملف المعرفة فلا يتكرّر.
طوّر مطوّرٌ مشهور تطبيق SaaS بـ ٤٠ ألف سطر عبر الذكاء. عند المراجعة البشرية وجد ٤٧ اقتراحاً: ٣١ صحيحاً، ١٢ تكسر أشياء، و٤ ثغرات أمنية. الخلاصة: الذكاء يسرّع البناء ٪٩٠، لكن المراجعة البشرية قبل النشر تبقى ضرورية — خصوصاً للأمان.
اختبر فهمك
منهجية الاحتراف.
مكتبة القوالب الجاهزة — انسخ والصق وابنِ
هذه قوالب prompts مجرّبة وجاهزة. كلّها بالإنجليزية لأنّ Lovable يعطي أفضل نتائجه بها. عدّل النصوص بين الأقواس [ ] بما يناسب مشروعك، ثم انسخها مباشرة.
كل قالب مصمّم ليكون خطوة واحدة. ابدأ بقالب «الأساس» ثم أضف القوالب الأخرى واحداً تلو الآخر — لا تدمجها كلّها في طلب واحد.
القالب ١ — الأساس (ابدأ كل مشروع به)
I need a [type of app] for [target users].
Tech stack: React, Tailwind, Supabase for backend.
Core features:
- [feature 1]
- [feature 2]
- [feature 3]
Design: [minimal & modern / playful / corporate], with a [color] accent.
Use realistic placeholder content, not lorem ipsum.
Start ONLY with the landing/home page. Do not build other pages yet.القالب ٢ — إضافة الحسابات وتسجيل الدخول
Add user authentication using Supabase.
- Email/password sign up and login, plus "Sign in with Google".
- After login, redirect users to the [dashboard] page.
- Protect the [dashboard] route so logged-out visitors are sent to login.
Do NOT change the existing landing page design.القالب ٣ — جدول بيانات + لوحة تحكم
Create a Supabase table called [items] with these fields:
[title (text), description (text), price (number), status (text), created_at].
Build a dashboard where the logged-in user can:
- See a list of their own [items] only.
- Add a new [item] via a form.
- Edit and delete an [item].
Enable RLS so each user sees only their own rows.القالب ٤ — الأدوار والصلاحيات
Add user roles: [Admin], [Manager], and [Customer].
- Admins can see everything and manage all users.
- Managers can manage only their team's data.
- Customers can see only their own records.
Hide admin-only buttons and pages from non-admin users.
Enforce these permissions in the database with RLS, not just in the UI.القالب ٥ — المدفوعات (اشتراكات Stripe)
Integrate Stripe for subscriptions.
- Two plans: Basic [$9/mo] and Pro [$29/mo].
- A pricing page with a "Subscribe" button for each plan.
- After successful payment, mark the user as subscribed and unlock
the [Pro features].
- Add a "Manage billing" link to the Stripe customer portal.القالب ٦ — إصلاح خطأ (مع لقطة شاشة)
There is a bug. When I [describe exact action], I expect [expected result]
but instead [what actually happens]. (Screenshot attached.)
Switch to Plan/Chat mode first: explain the most likely root cause
in plain English. Do NOT change code yet. Then propose a fix plan.القالب ٧ — مراجعة الأمان قبل النشر
Before I publish, do a full security review:
1) Confirm RLS is enabled on every table.
2) Make sure no secret API keys are exposed in the frontend.
3) Verify protected pages reject logged-out users.
4) Confirm each role can access only what it should.
List every issue you find and fix it.القالب ٨ — تحسين تجربة المستخدم
Polish the user experience across the app:
- Add friendly empty states (e.g. "No items yet — add your first one").
- Add loading spinners for data fetches.
- Show success/error toast notifications after actions.
- Make sure the whole app is fully responsive on mobile.
Keep the current design language and colors consistent.الصق هذا في إعدادات Knowledge في بداية أي مشروع — سيُرسَل تلقائياً مع كل طلب ويجعل النتائج أكثر اتّساقاً.
PROJECT: [app name] — [one-line description].
USERS & ROLES: [who uses it and what each role can do].
TECH: React, Tailwind, Supabase (auth + database), Stripe for payments.
USER FLOW: [step 1] → [step 2] → [step 3].
DESIGN: [style], [accent color], clean and consistent, mobile-first.
RULES: small iterations; enable RLS on all tables; never expose secret
keys; ask before large refactors; keep existing pages intact unless told.اختبر فهمك
استخدام القوالب.
قاموس المصطلحات — كلّ كلمة تقنية بالعربية البسيطة
لن تخاف من أي مصطلح بعد اليوم. هذه كل الكلمات التي ستصادفها في Lovable مشروحة بلغة يفهمها أيّ شخص — بلا خلفية برمجية.
لا تحفظ هذه المصطلحات عن ظهر قلب. عُد إليها وقت الحاجة فقط. الفهم يأتي بالممارسة لا بالحفظ.
الخطوة التالية + شهادتك
أنهيت رحلةً نقلتك من «لا أعرف ما هو Lovable» إلى «أستطيع بناء تطبيق SaaS متكامل ونشره». إليك ما تفعله الآن لتحوّل المعرفة إلى نتيجة.
خطّتك لأوّل ٧ أيام
اليوم ١ — افتح حساباً وابنِ صفحة
سجّل في lovable.dev على الخطّة المجانية. استخدم القالب ١ وابنِ صفحة هبوط لفكرة بسيطة. اختبر التعديل البصري.
اليوم ٢–٣ — اكتب ملف المعرفة وثبّت الواجهة
الصق قالب الـ Knowledge وعدّله. ابنِ كل صفحات تطبيقك ببيانات وهمية حتى يرضيك الشكل.
اليوم ٤–٥ — اربط الحسابات وقاعدة البيانات
أضف Supabase: تسجيل الدخول وجدول بيانات واحد مع لوحة تحكم. فعّل RLS.
اليوم ٦ — المراجعة والأمان
شغّل قالب مراجعة الأمان. أصلح كل ملاحظة. اطلب صقل تجربة المستخدم.
اليوم ٧ — انشر
اضغط Publish. شارك الرابط مع ٣ أشخاص واطلب رأيهم. هذه أوّل دورة تعلّم حقيقية.
مصادر تتابع بها التعلّم
التوثيق الرسمي
docs.lovable.dev — دليل المنصّة الكامل وأحدث الميزات أوّلاً بأوّل.
قناة Lovable
دروس فيديو قصيرة وأمثلة بناء حيّة من الفريق والمجتمع.
مجتمع Lovable
منتدى ومجموعات يتبادل فيها البناة القوالب وحلول المشاكل الشائعة.
ابنِ وكرّر
أفضل مصدر هو يداك. كل تطبيق تبنيه يضاعف مهارتك أضعافاً.
قبل عامين كان بناء هذا يتطلّب فريقاً وآلاف الدولارات وأشهراً. اليوم تملك أنت — بهذه المعرفة — القدرة على تحويل فكرة إلى منتج حيّ في أيّام. الفارق الوحيد بينك وبين من أطلق مشروعه: أنّه بدأ. ابدأ اليوم.
شهادة إتمام الدورة
أكمل كل الدروس (وضع علامة «أنهيت الدرس» في كلٍّ منها) ليصل تقدّمك إلى ١٠٠٪ وتظهر شهادتك تلقائياً هنا.
تقدّمك الحالي 0٪. أكمل بقية الدروس لفتحها.
الآن دورك. افتح Lovable، واكتب أوّل prompt، وحوّل فكرتك إلى واقع. بالتوفيق!
Master Lovable from zero to building real apps
without writing a single line of code
Lovable turns your plain-language idea into a real, full-stack web app — interface, database, login, and payments. This path takes you by the hand, step by step, with real examples and copy-paste templates, until you launch your first product with confidence.

Who is this course for?
Entrepreneurs
Launch your MVP fast to test the market before hiring developers.
Designers
Turn your Figma designs into a live, usable, shippable product.
Product managers
Build internal tools and dashboards without waiting on the dev team.
Business owners
Build a booking system, a store, or a client portal for your own business.
Creators
Ship small tools and apps for your audience and monetize them.
Learners
Enter the world of software building through its easiest, most practical door.
What will you master by the end?
- Understand every feature in Lovable and exactly when to use it (not just headlines).
- Write professional prompts that get what you want on the first try instead of ten failed attempts.
- Connect a real database, login, and payments to your app — all in plain language.
- Publish to your own domain and secure your app before launch.
- Handle errors and unexpected behavior like a pro instead of spinning in an endless loop.
- Build a complete SaaS project end to end by following the included templates.
Because it doesn't just teach you "the buttons" — it teaches the way of thinking that separates people who actually ship a product from those who stay stuck. Every module has real examples, ready templates, and interactive exercises, and the knowledge here saves you weeks of trial and error — and the thousands of dollars you'd have paid an outside developer.
How to use this course effectively
Follow in order
Modules build on each other. Don't jump to payments before you master prompts.
Apply immediately
Open Lovable in another tab and apply each template as you read it. Learn by doing, not just watching.
Take the quizzes
Each module ends with a short quiz that locks in the idea. Answer before moving on.
Mark "complete"
Click "I finished this module" so your progress saves automatically and you resume where you left off.
This site saves your progress in your browser. Close the page and come back anytime — your completion marks and progress bar will be exactly as you left them.
What Is Lovable?
Imagine talking to a tireless "software engineer": you describe what you want in plain language, and it builds the entire app in front of your eyes in minutes. That, in short, is Lovable.

Lovable (website: lovable.dev) is an AI platform for building full-stack applications. You write a description in natural language — English or Arabic — and the platform generates real, editable, ownable code, then publishes it straight to the internet.
The project began as "GPT Engineer," an open-source project with tens of thousands of GitHub stars. The commercial version launched as Lovable (late 2024), topped Product Hunt, grew extremely fast, and reached a multi-billion-dollar valuation backed by major investors. In other words, this is not a side project — it has become a platform that millions of users worldwide rely on. (For up-to-date numbers, see lovable.dev.)
Why does "full-stack" matter so much?
Every real app has two layers: the frontend (what the user sees) and the backend (the brain that stores data and runs accounts and logic). Many tools build only the frontend, so you get "a pretty picture that doesn't work." Lovable builds both layers together:
Frontend
React + Tailwind CSS — a modern design that's automatically responsive on every screen.
Backend & database
Supabase integration: database, login, file storage, and server logic.
Payments
Stripe integration for subscriptions, one-time payments, and multi-vendor marketplaces.
Publishing & hosting
Built-in hosting + the ability to connect your own domain in a few clicks.
Lovable is not a traditional "No-Code" tool
Traditional tools hide the code behind drag-and-drop "blocks," and you stay locked inside the platform. Lovable is a smart hybrid:
| Aspect | Traditional No-Code | Lovable |
|---|---|---|
| Output | Closed components | Real code you own |
| Customization | Limited to what the platform allows | Unlimited, via code |
| Moving later | Nearly impossible | Export to GitHub freely |
| How you work | Drag and drop | A conversation in plain language |
When to use Lovable… and when not
Landing pages, prototypes (MVPs), internal tools, simple-to-medium SaaS apps, client portals, dashboards, and testing ideas fast.
Extremely complex systems, very high-traffic apps (100k+ daily users), and sensitive security requirements. In those cases use it alongside a developer's review, or migrate to tools like Cursor later (the code is exportable, so you lose nothing).
Test your understanding
Two quick questions to lock in the concept.
How the Engine Works
Before you write your first prompt, understand what happens "behind the curtain." Understanding how Lovable thinks is the difference between amazing results and repeated frustration.
The core loop (the magic cycle)
Everything you do in Lovable runs in a simple, constantly repeating four-step loop:
You describe (Prompt)
You write what you want in words. Example: "Add a contact page with a form for name, email, and message."
It plans and builds
The AI analyzes your request, drafts a conceptual plan, then writes/edits the necessary files.
You preview
The result appears instantly in a live preview on the side of the screen so you can try it yourself.
You iterate
You request a small change, preview, and so on… each edit a small step toward your final product.
"One change, then check." Don't ask for five features at once. Small, testable requests produce more accurate results that are easier to debug.
The AI isn't an "order-taker"… it's a partner
Since the 2.0 update (mid-2025), Lovable runs in autonomous "Agent" mode by default. This isn't just a chatbot that writes code — it's a system that can:
- Read your whole project to understand context before editing.
- Inspect logs to discover the causes of errors on its own.
- Search the web for solutions when needed.
- Generate images and make precise edits across several files at once.
This shift matters because it ended the era of "fragile edits" that used to break other parts of the app in older versions.
The three modes in one line
We'll detail them later in Module 07, but get to know them now:
Plan / Chat
For thinking, planning, discussing, and troubleshooting — without editing any code.
Agent
For actual building: it executes, fixes, and edits automatically.
Visual Edits
For precise tweaks by clicking elements directly — no prompt needed.
On each edit, Lovable may rewrite the whole file, not just the requested line. That's why it's best to explicitly tell it what not to touch ("don't modify the main layout file"). You'll master this trick in the prompts module.
Test your understanding
Lock in the loop and the golden rule.
Tour of the Interface
You'll never feel lost again. We'll break down every corner of the Lovable screen and learn exactly what it does.
The main areas of the screen
Chat panel
On the side of the screen — this is where you type requests and see the AI's replies and steps. It's your command center.
Live preview
The largest area — shows your app running in real time. Every edit appears here instantly.
Design View
A visual layer added in 2.0 — edit colors, fonts, and spacing with Figma-like tools.
Code & project structure
For those who want a look — you see the actual files. You don't have to understand them, but it's good to know they exist.
Tools you must know
Always start with an empty project and build gradually. This helps the AI absorb the core concepts first before diving into details, and gives you cleaner results than "ask for everything at once."
Where do you actually spend your time?
The surprise: pros don't spend most of their time writing text commands or in the code editor. They spend it in the visual layer — tuning the small details that make a product "look and feel right." Words build the structure; visual clicking polishes the details.
Test your understanding
Do you know your tools?
Pricing & Credits
Money is a sensitive topic. We'll explain every plan honestly, reveal the "hidden costs" nobody tells you about, and give you an interactive calculator so you know your real budget before you begin.
Honestly: building a serious, full product on Lovable requires a paid subscription. But you don't have to pay to start — try your idea on the limited free tier first, and via other free tools, and upgrade to paid only once you're sure the tool fits your project.
Start free (before paying anything)
Lovable's free plan
5 daily credits, no credit card — enough to try the platform and build a small prototype. Start here to see if it fits. Official pricing.
Google AI Studio (free)
A free, browser-based environment to build AI apps (Gemini) with a free Firebase backend — great for practicing the same skill at no cost. aistudio.google.com. (Note: on the free tier your inputs may be used to improve Google's models.)
Other tools with free tiers
Bolt.new, v0 by Vercel, and Replit all offer a free tier to try the "describe it, get it" workflow before committing to paid.
This is for educational purposes, not professional advice. Prices, plans, and their names change constantly — always rely on the official pages for current numbers.
What are "Credits" anyway?
Credits are the platform's "fuel." Every time you ask the AI to build or edit something, some amount is consumed. The bigger and more complex the request, the more it consumes. That's why writing precise prompts doesn't just save your time — it saves your money too, because it reduces failed attempts.
Paid plan comparison (optional upgrade)
Free plan — $0
- 5 credits per day — enough to try the platform and build small prototypes.
- Published on a subdomain (yourapp.lovable.app) with a Lovable badge.
- More generous than most competitors' free tiers. Official pricing.
Treat it as a "test drive": use it to answer "can Lovable build what I want?" — not to build your real product, because the generation limits will frustrate you.
Pro plan — from $25/mo
- Pro 100 ($25): 100 monthly credits + 5 daily (up to ~150/mo). The sweet spot for most freelancers.
- Higher plans (from ~$100/mo): more credits for active builders or several projects. (Names and prices change — see the official page.)
- Unlimited custom domains + Lovable badge removed.
If you're building one serious project and want your own domain with no badge — Pro 100 is the "golden zone" for most people.
Business plan — $50/mo
- All Pro features + single sign-on (SSO) for companies.
- Your data is not used to train the AI (data-training opt-out).
- Access-restricted projects, design templates to unify team output.
- Per-member credit caps.
SSO and privacy protection are baseline requirements in many corporate environments. Pricing is shared for the team, not per user.
Enterprise plan — custom pricing
- Advanced security and compliance requirements.
- Dedicated support and flexible limits based on organization size.
- You contact the sales team to detail your needs.
⚠️ Hidden costs (TCO) — read this carefully
The advertised price ($25–50) does not represent your true cost for a production project. Here's what usually gets added:
| Item | Approx. cost | When you need it |
|---|---|---|
| Supabase Pro (production database) | ~$25/mo | When you exceed the free tier — pricing |
| Custom domain (.com) | ~$12/yr | For a professional look at launch |
| Email service (Resend / SendGrid) | $0–20/mo | For verification emails and notifications |
| Stripe fees | ~2.9% + $0.30 | When receiving payments (varies by country — stripe.com) |
Compare all of this to the traditional path: hiring a developer for $15,000–50,000 upfront + monthly hosting. Suddenly Lovable's economics look genuinely amazing — even with the hidden costs.
Test your understanding
Did you grasp the platform's economics?
The Art of Writing Prompts
This module alone is worth the price of the course. The difference between someone who builds a product in an hour and someone who spins in a week of frustration is prompt quality. Here you'll learn a proven method — not luck.

Treat the AI as a smart engineering partner that "only knows what you tell it." Clarity and detail = better results. Vagueness = guessing and errors.
The rule of three: "Where, What, and What-not-to-touch"
Say where
Pinpoint the page or element: "On the /dashboard page" or "on the sign-up button."
Say what
Explain the expected behavior clearly: "On click, open a confirmation dialog."
Say what not to touch
Set guardrails: "Do not modify the main /Layout file."
The golden template for starting a new project
Use this proven structure in the first prompt of any project. Copy it and edit the contents:
I need a [type] web application with:
TECH STACK:
- Frontend: React + Tailwind CSS, responsive, mobile-first
- Auth: email/password + Google sign-in
- Database: Supabase
CORE FEATURES:
- [main feature 1]
- [main feature 2]
- [secondary feature]
DESIGN:
- Clean, modern, [your style: minimal / playful / corporate]
- Primary color: [#hex], rounded corners, generous spacing
Start ONLY with the landing page containing:
- A hero section with headline, subtext, and a "Get Started" button
- A features section with 3 cards
- A simple footer
Do not build the dashboard yet. Use realistic placeholder content,
not lorem ipsum.We asked to start with one page only ("Start with the landing page only, don't build the dashboard yet") + realistic content instead of dummy text. This gives you a clean foundation to build on.
Five habits that separate you from the pros
- Think in components: ask for one "product card" done perfectly, then ask to repeat it — instead of describing each card separately.
- Use real content: realistic names, prices, and text make the result closer to reality and surface design problems early.
- Repeat important instructions: the AI's memory is limited. Restate the key constraint in each prompt ("Remember: don't change the header design").
- Iterate small: "one change then check" — don't request five features together.
- Attach images: to describe a visual bug or a desired look, attach a screenshot. A picture is worth a thousand words.
Advanced technique: "Meta-Prompting"
Instead of writing the request by hand and hoping for the best, use AI itself (like ChatGPT or Claude) to improve your prompt before pasting it into Lovable:
I want to build an app: [briefly describe your idea]. Write me a
professional, detailed prompt for the Lovable platform that includes:
the app type, the tech stack, the users and their roles, the core
pages, and the features — ordered in a logical build priority.
Make it as clear and specific as possible.An even stronger technique: "Reverse Meta-Prompting"
After you hit an error and solve it, ask the AI to document the cause of the problem and its fix so your future prompt is more precise. You're building a self-improving loop:
Review the prompt I used, explain why it produced unexpected
behavior, then propose an improved version of it that avoids the
same problem in the future.When the AI keeps ignoring a point, the "I am frustrated…" pattern ("I'm frustrated because the button still doesn't work, focus only on this problem") sometimes pushes it to focus better! Yes, this is actually a documented tip.
Test your understanding
The rule of three and more.
The Knowledge File
If the prompt is the message, the Knowledge file is "your project's brain." Mastering it dramatically reduces errors and "hallucinations."
Why does it matter this much?
The Knowledge file is a document sent automatically with every request, giving the AI full context about your project every single time. Without it, you remind it of everything manually in each message. With it, it understands your vision, your users, and your rules without you repeating them.
Imagine a new employee who starts each morning with an empty memory. The Knowledge file is the "onboarding guide" they read every morning to remember who you are, what you're building, and why.
What do you put in it?
- Overview: what you're building and for whom, and the problem it solves.
- Users & roles: e.g. "a user with the Investor role sees this component, but Admin doesn't."
- Tech stack: React, Supabase, etc.
- User flow: how a person moves through the app.
- Visual guidelines: colors, fonts, the overall vibe.
- Rules & guardrails: "don't modify file X," "always use ready-made Tailwind components."
A ready-made Knowledge file template
# Project: [App Name]
## Overview
[One paragraph: what this app does and who it's for.]
## Users & Roles
- Admin: manages everything, sees all data.
- Member: uses core features, sees own data only.
- Guest: read-only landing pages.
## Tech Stack
- React + Tailwind CSS (mobile-first, responsive)
- Supabase (database + auth)
- Stripe (subscriptions)
## Core User Flow
1. Visitor lands on homepage -> clicks "Sign up"
2. Creates account -> redirected to /dashboard
3. From dashboard, can [main action]
## Design Guidelines
- Primary: #FF6A5E | Background: light, lots of whitespace
- Font: clean sans-serif | Rounded corners, soft shadows
## Rules (do NOT break)
- Do not modify /components/Layout.tsx
- Always use Tailwind breakpoints, never custom CSS
- Keep all currency in USD with 2 decimalsHave an existing project with no Knowledge file? Use Plan mode and ask: "Generate a Knowledge file for my project based on the features I've already implemented" — and it writes one for you from your actual project.
Test your understanding
The project's brain.
The Three Modes: when to use each
Using the wrong mode at the wrong moment wastes your time and credits. Here you'll learn to choose the right tool for each task.
Planning & discussion mode
A thinking partner. You discuss, plan, and debug together without editing any code. Ideal for:
- Thinking through the structure of a new feature before building it.
- Diagnosing the cause of an error ("why doesn't this work?") without risking changes.
- Generating a Knowledge file or an action plan.
Debug in Plan mode first. Understand the problem, then switch to Agent to execute. This prevents rushed, random edits.
Agent mode (building)
The default since July 2025. An autonomous system that actually builds: it searches your project, reads logs, fixes errors itself, and edits several files precisely. Use it for:
- Building features and implementing changes.
- Fixing errors after understanding them in Plan mode.
- Any task that needs "execution," not "discussion."
Visual Edits
You click an element directly in the preview and edit it without writing a prompt and usually without consuming generation credits. Ideal for:
- Quickly changing text, color, font size, or spacing.
- Final polishing of fine details.
- Anyone who prefers clicking to typing.
Instead of writing "make the heading a bit bigger and darker" and waiting, click the heading and edit it visually in seconds.
Choosing at a glance
| Task | Best mode |
|---|---|
| Planning and thinking through a feature | Plan |
| Diagnosing an error before fixing it | Plan |
| Building a feature or implementing a change | Agent |
| Quickly editing a color/text/spacing | Visual Edits |
Test your understanding
The right tool for each task.
Database & Accounts (Supabase)
This is where your app turns from "a pretty page" into "a real product" that stores data and knows its users. Don't worry — we'll explain everything in plain language.

What is a "database" anyway? (no jargon)
Imagine a huge, organized Excel sheet that lives on the internet. Each row is a record (a user, an order, a product…) and each column is a piece of information. The database is your app's permanent memory: when a user signs up or adds a product, it's saved here and stays even if they close the browser.
And "authentication," simply put, is the login system that verifies "who you are" — email and password, or sign-in via Google.
What is Supabase and why does Lovable use it?
Supabase is the backend service Lovable relies on to provide:
PostgreSQL database
Powerful and reliable, with real-time capabilities.
Login
Email/password + OAuth providers like Google.
File storage
User images, attachments, files.
Edge Functions
Simple server logic for automated tasks.
Any feature that needs to store data or log users in requires connecting Supabase. The free tier is suitable for development only; your production project will usually need Supabase Pro (~$25/mo) as it grows.
How do you connect it? Practical steps
From the Integrations menu
Open Integrations in your project and pick Supabase, then connect your account (or create one for free).
Request the feature in words
Example: "Add email/password login, and after login redirect the user to /dashboard."
Let Lovable build the tables
It will propose the data structure (tables and columns) and implement it. Review and confirm.
Test
Sign up with a test account and confirm data is saved and roles work.
A prompt template for adding accounts
Add authentication using Supabase:
- Email/password sign-up and login + Google sign-in
- After login, redirect users to /dashboard
- Create a "profiles" table: id, full_name, email, role (default: "member"), created_at
- Protect /dashboard so only logged-in users can access it
- Add a "Log out" button in the top navigation
Do not change the public landing page layout.Always ask to enable "Row Level Security" (RLS) in Supabase so each user accesses only their own data. We'll go deeper on this in the security module.
Test your understanding
Backend basics.
Receiving Payments (Stripe)
The prettiest app with no way to get paid is a hobby. Here you learn to turn your app into a real source of income.

What does Stripe integration support in Lovable?
Recurring subscriptions
Monthly/yearly plans with webhook support for automatic activation.
One-time payment
Sell a product or service at a fixed price directly.
Multi-vendor marketplaces
Via Stripe Connect, each seller has their own connected account.
Stripe takes roughly 2.9% + $0.30 per transaction (the standard U.S. rate — it varies by country and payment method; see stripe.com). Rough example: $10,000 in monthly sales ≈ $290–590 in processing fees. Lovable charges no extra platform fee on payments.
Connection steps
Create a Stripe account
Free, and you get "API keys" from the Stripe dashboard.
Connect it via Integrations
Paste the keys into the integration settings inside Lovable.
Request the pricing page in words
Describe the plans and prices, and let Lovable build the buttons and payment wiring.
Test in test mode
Stripe provides "test cards" so you can try payments without real money before launch.
A prompt template for a subscriptions page
Add a Pricing page with Stripe subscriptions:
- Three plans: Free ($0), Pro ($19/mo), Business ($49/mo)
- Each plan card lists its features and a "Subscribe" button
- On subscribe, open Stripe Checkout for the selected plan
- After successful payment, mark the user's "plan" field in the
profiles table and unlock Pro features
- Use Stripe test mode for now
Keep the existing dashboard untouched.You'll need to activate your Stripe account (business info and bank account) and watch out for taxes and compliance in your country. Test the whole flow thoroughly in test mode first.
⚖️ This is for educational purposes, not legal, financial, or tax advice — consult a professional in your country.
Test your understanding
Money comes in.
Publishing, Domains & Security
Launch time! We'll get your app out to the world on your own domain, and secure it before anyone sees it.
Publish in one click
Press the Publish button and your app goes live on a subdomain like yourapp.lovable.app. It becomes live on the internet in seconds, and anyone with the link can use it.
The lovable.app link is great for testing and quick sharing, but it's not professional enough to launch to customers or investors. That's where a custom domain comes in.
Connecting your own domain
Buy a domain
From Namecheap, GoDaddy, or others (~$12/yr for a .com). The domain isn't included in your Lovable subscription.
Open domain settings in Lovable
Available on paid plans (Pro and up) — with unlimited domains.
Set DNS records
You copy the values Lovable gives you and put them in your domain panel. A simple, documented step.
Wait for activation
Propagation can take minutes to hours, then your app is live on your domain with an automatic HTTPS certificate.
🔒 Security before launch — don't be careless here
After several security incidents affecting Lovable-hosted sites, the platform added security checks. Always scan your app before publishing publicly. (This is educational, not professional security advice; for sensitive systems, consult an expert.)
Row-Level Security (RLS)
Make sure each user accesses only their own data, not others'.
Secret keys
Never put sensitive API keys in the frontend — ask to place them in server secrets.
Input validation
Validate the data users submit to prevent malicious input.
Built-in security scan
Use Lovable's security scanning tool before pressing Publish.
Before launch, run a security review:
- Ensure Row Level Security (RLS) is enabled on ALL Supabase tables
- Confirm no secret API keys are exposed in the frontend
- Validate all user inputs on forms
- Make sure protected pages reject logged-out users
List any security issues you find and fix them.Test your understanding
Ready to launch?
GitHub & Code Ownership
Lovable's biggest liberating feature: you own your code. You're not a prisoner of the platform.
What does "export to GitHub" mean?
GitHub is a global "vault" for storing and sharing code. Lovable lets you connect your project to a GitHub repository, so the code syncs automatically. This means:
- You actually own the code: a full copy in your hands, not trapped in the platform.
- Backups and version history: a complete record of every change.
- A path to grow: you can start on Lovable then move to custom code (or tools like Cursor) as you scale, without losing your work.
- Collaboration: developers can work with you on the same project later.
Lovable builds new apps from scratch. You currently can't import an existing GitHub repository to edit it inside Lovable. The direction is from Lovable to GitHub, not the other way around.
Real-world tests show Lovable is ideal for the 0→1 stage (idea to first version). For very large or very complex apps, plan to migrate to custom code later. Exporting to GitHub makes that transition possible and smooth.
Test your understanding
Who owns the code?
Debugging & Fixing Issues Like a Pro
You will hit errors. That's normal. The difference is that a pro solves them calmly and methodically, while a beginner spins in a frustration loop. You'll become the former.
Two kinds of problems
Explicit errors
The code stops and an error message appears. Agent usually fixes these automatically when told.
Unexpected behavior
The code runs with no error, but the result isn't what you wanted. The harder kind — it needs a method.
A 5-step debugging method
Retrace your steps
Review what you originally asked. Was your request clear? Where did it start to drift?
Break the problem down
Pinpoint the broken part precisely. Don't say "it doesn't work," say "the Save button on the settings page doesn't save."
Use images
Attach a screenshot of the current result vs. the desired one. The visual difference clarifies the problem instantly.
Diagnose in Plan mode
Ask "why is this happening?" in Plan before any edit, to understand the root cause.
Revert if needed
If things get worse, the Revert button returns you to the last stable version. Don't hesitate.
A prompt template for diagnosing an error
Use Chat/Plan mode (do NOT change code yet).
Problem: On the /settings page, clicking "Save" does nothing —
the toast appears but the data is not saved to Supabase.
Expected: clicking Save should update the user's row in "profiles"
and persist after refresh.
Please: 1) explain the likely root cause, 2) list what to check,
3) propose a minimal fix. Then wait for my confirmation.When do you start over? (the Remix strategy)
Sometimes "patching" costs more than "rebuilding." The Remix feature creates a clean copy of your project from a fresh start, so you begin with better prompts and clearer knowledge, using the old one as a reference. Rebuilding isn't failure — it's a strategic decision that the best builders make consciously.
Building with AI is "a conversation, not a command." It will misunderstand sometimes, backtrack sometimes, and may produce something quite different. That's normal. The successful ones break work into small testable pieces and are patient with iteration.
Test your understanding
Calm and method.
Real Case Studies
Stories are more powerful than theory. Here are real examples — inspiring successes and a cautionary lesson — so you can learn from others' experiences.
These are illustrative examples of real-world usage patterns; the numbers are approximate and vary case by case. Take the lesson, not the literal figure.
An "equity" engine for LA wildfire victims
Shalini Ananda · social impactShalini Ananda built a tool to help victims of the 2025 Los Angeles wildfires get fair access to resources and support — using Lovable. The lesson: speed of building means a humane idea becomes a real tool in the hands of those in need within days, not months. When the need is urgent, the ability to build fast is literally life-saving.
Tomas: several apps and learning to code in practice
Canadian soldier & developer · persistenceTomas, a Canadian infanteer, used Lovable to build and ship several apps — including a tool called DummyForms — and along the way mastered the basics of frontend and backend. The lesson: Lovable isn't just a production tool, it's a practical school. Every project taught him something, and quantity (with iteration) created expertise.
A VC multiplies their productivity
venture capital · productivityAn investor discovered Lovable, rebuilt their website, improved their backend systems, and multiplied their productivity several times over. The lesson: even non-programmers in leadership roles can build their own tools instead of waiting for a technical team — moving faster and staying more in control.
A SaaS MVP in weeks instead of months
dev team · time to marketA team built an initial SaaS version in a few weeks that would have taken months the traditional way — login (via Clerk), subscriptions (Stripe), database operations, and API integrations. The lesson: Lovable massively shortens time to market in the 0→1 stage.
A cautionary lesson: a huge project of tens of thousands of lines
@levelsio · the tool's limitsA developer connected a huge SaaS project (tens of thousands of lines) via GitHub. Lovable proposed dozens of changes: most were correct, but some broke functionality and some introduced security flaws — and human review took hours to verify. The lesson: for large, complex projects, human oversight is essential. Lovable is great at fast building, but it's not a substitute for review in critical systems.
A real-world template: "Monthly Close Copilot"
This is an example of a structured prompt for a real accounting tool — notice how the outcome, roles, and entities are defined precisely:
Build a web app called "Monthly Close Copilot".
Outcome: Help a small ecommerce business run a consistent monthly
close by assigning tasks, collecting evidence files, and tracking
completion.
Roles:
- Admin: manages templates, users, sees all months.
- Accountant: works tasks, uploads evidence, marks tasks complete.
- Owner: views progress, comments, cannot edit templates.
Entities:
- Company: name, timezone.
- Month: period, status (open/closed).
- Task: title, assignee, status, evidence files, due date.
Start with the Admin dashboard listing months and their progress.A good request is "detailed in the right places": the outcome, the users, the data, the screens, the flows, and the rules. This is what turns a vague idea into buildable specifications.
Full Project, Step by Step
We'll build a complete appointment-booking app together called "BookEasy" — from a blank page to a published product that takes payments. Copy each prompt in order and apply it in Lovable.

An app that lets businesses (a salon, a clinic, a consultant) take appointment bookings online, and lets customers book a slot and pay a deposit. Three roles: customer, business owner, admin.
Step 1 — Foundation and the Knowledge file
Start with an empty project, then in Plan mode ask it to generate the Knowledge file:
Use Plan mode. Help me create a Knowledge file for "BookEasy":
- An online appointment booking app.
- Roles: Customer (books appointments), Business Owner (manages
services & availability), Admin (oversees everything).
- Tech: React + Tailwind, Supabase (db + auth), Stripe (deposits).
- Design: clean, modern, trustworthy. Primary color #2F6FED,
rounded cards, lots of whitespace.
Output a complete Knowledge file I can save.Step 2 — The landing page only
Build ONLY the landing page for BookEasy:
- Hero: headline "Book your appointment in seconds", subtext, and two
buttons ("Get Started" / "How it works")
- "How it works" section: 3 steps with icons
- A section showcasing 3 example businesses (use realistic content)
- Footer with links
Make it fully responsive (mobile-first). Do not build auth yet.Step 3 — Login and roles
Add Supabase authentication:
- Email/password + Google sign-in.
- A "profiles" table: id, full_name, role (customer/owner/admin,
default customer), created_at.
- After signup, ask the user to choose: "I want to book" (customer)
or "I own a business" (owner), and save the role.
- Redirect customers to /explore and owners to /dashboard.
- Protect those routes for logged-in users only.
Keep the landing page layout unchanged.Step 4 — The business owner dashboard
Build the Business Owner dashboard at /dashboard:
- Owner can create "Services": name, duration (minutes), price.
- Owner can set weekly availability (days + time slots).
- Tables in Supabase: services, availability, bookings.
- Show an overview: upcoming bookings list + total revenue this month.
Use Visual Edits-friendly layout: cards, clear sections.
Only the owner role can access this page.Step 5 — The customer experience and booking
Build the customer booking flow:
- /explore: list businesses and their services.
- Clicking a service opens a booking page showing available slots
(from the owner's availability, minus already-booked slots).
- Customer picks a slot, confirms, and a row is added to "bookings"
with status "pending_payment".
- Show the customer their bookings in /my-bookings.
Validate that a slot can't be double-booked.Step 6 — The payment deposit (Stripe)
Integrate Stripe for booking deposits:
- When a customer confirms a booking, open Stripe Checkout for a
deposit (20% of the service price).
- On successful payment, set the booking status to "confirmed" and
show a success page.
- Use Stripe test mode for now.
Do not change the dashboard or explore pages.Step 7 — Polish, then security, then publish
1) Polish: add a friendly empty-state for "no bookings yet",
loading spinners, and success toasts.
2) Security review: enable RLS on all tables so customers see only
their bookings and owners see only their business data. Confirm
no secret keys are exposed. Reject logged-out users on protected
pages. List and fix any issues.
3) Confirm everything works, then I will publish to my custom domain.With these seven steps you built a complete SaaS app: a marketing page, accounts and roles, bookings, payments, security, and publishing. This is exactly what used to cost thousands of dollars and weeks of work. Swap the app idea and repeat the same structure for any other project.
Test your understanding
The building method.
Best Practices and a Professional Workflow
The difference between someone "playing" with Lovable and someone building a real product with it isn't intelligence — it's method. These are the rules pros follow to avoid wasting credits, time, and nerves.
Treat Lovable like a smart but very literal human developer: it does exactly what you say, not what's in your head. Your clarity = the quality of the result.
1. Work in small iterations
The biggest mistake beginners make: asking for ten features in one prompt. The result is a mess that's hard to debug. A pro asks for one change, tests it, then moves to the next.
The wrong way
"Build me a full store with login, cart, payments, dashboard, notifications, and reviews." — everything at once.
The right way
Start with the product listing page only. Test. Then add the cart. Test. Then checkout. Step, test, step.
2. Lock down the frontend before touching the backend
Build all the pages, design, and navigation first with mock data, and make sure you love the look. Only then connect the database and accounts. Why? Because changing the design after connecting the backend is harder and costs more credits.
Static frontend
All pages + design + navigation with mock data.
Visual review
Tune colors, fonts, and spacing until you're fully satisfied.
Accounts and database
Connect Supabase: login and tables.
Logic and payments
Roles and permissions, then Stripe.
Security then publish
Review RLS and keys, then the domain.
3. Specify the where, the what, and the do-not-touch
On any edit, tell Lovable three things: where the change is, what exactly it is, and what must not change. That last sentence prevents "side breakage" where it fixes one feature and breaks another.
On the Dashboard page only, change the stats cards to a 3-column grid.
Do NOT touch the sidebar, the navigation, or any other page.4. Debug in Plan/Chat mode
When an error appears, don't ask for a fix immediately in Agent mode. Switch to Chat/Plan mode and ask: "What's the cause of this error? Explain before you fix." It will analyze the problem without touching the code, so you understand the root and avoid repeating it.
If Lovable gets stuck in a failed fix loop, literally write: "I am frustrated, this didn't work. STOP. Step back, explain the root cause in plain English, then propose a plan before changing any code." This sentence breaks the loop and resets the approach.
5. Security before publishing — always
Before connecting the domain, ask for an explicit security review. Lovable sometimes warns you, but the responsibility is yours. The most important point: enabling RLS on all tables.
6. Remix and Revert: your two safety nets
Revert
Every edit is saved as a point. If a change breaks something, go back in one click to the last good version. Don't fear experimenting.
Remix
If things get too tangled, copy the project as a clean start and keep the original. Sometimes a fresh start is faster than fixing accumulated mess.
7. Meta-prompting: let the AI improve your request
Before sending an important prompt, ask ChatGPT or Lovable's Chat mode to "improve and clarify this request so the app generator understands it precisely." And the reverse (reverse meta-prompting): after solving a hard error, ask it to document the cause and fix to add to your Knowledge file so it doesn't recur.
A well-known developer built a 40,000-line SaaS app with AI. On human review they found 47 suggestions: 31 correct, 12 that broke things, and 4 security flaws. Bottom line: AI speeds up building by ~90%, but human review before publishing remains essential — especially for security.
Test your understanding
The professional method.
Ready-to-Use Template Library — copy, paste, build
These are tested, ready prompt templates. They're all in English because Lovable gives its best results in English. Edit the text between the brackets [ ] to fit your project, then copy them directly.
Each template is designed to be a single step. Start with the "foundation" template, then add the others one after another — don't merge them all into one request.
Template 1 — Foundation (start every project with it)
I need a [type of app] for [target users].
Tech stack: React, Tailwind, Supabase for backend.
Core features:
- [feature 1]
- [feature 2]
- [feature 3]
Design: [minimal & modern / playful / corporate], with a [color] accent.
Use realistic placeholder content, not lorem ipsum.
Start ONLY with the landing/home page. Do not build other pages yet.Template 2 — Adding accounts and login
Add user authentication using Supabase.
- Email/password sign up and login, plus "Sign in with Google".
- After login, redirect users to the [dashboard] page.
- Protect the [dashboard] route so logged-out visitors are sent to login.
Do NOT change the existing landing page design.Template 3 — Data table + dashboard
Create a Supabase table called [items] with these fields:
[title (text), description (text), price (number), status (text), created_at].
Build a dashboard where the logged-in user can:
- See a list of their own [items] only.
- Add a new [item] via a form.
- Edit and delete an [item].
Enable RLS so each user sees only their own rows.Template 4 — Roles and permissions
Add user roles: [Admin], [Manager], and [Customer].
- Admins can see everything and manage all users.
- Managers can manage only their team's data.
- Customers can see only their own records.
Hide admin-only buttons and pages from non-admin users.
Enforce these permissions in the database with RLS, not just in the UI.Template 5 — Payments (Stripe subscriptions)
Integrate Stripe for subscriptions.
- Two plans: Basic [$9/mo] and Pro [$29/mo].
- A pricing page with a "Subscribe" button for each plan.
- After successful payment, mark the user as subscribed and unlock
the [Pro features].
- Add a "Manage billing" link to the Stripe customer portal.Template 6 — Fixing a bug (with a screenshot)
There is a bug. When I [describe exact action], I expect [expected result]
but instead [what actually happens]. (Screenshot attached.)
Switch to Plan/Chat mode first: explain the most likely root cause
in plain English. Do NOT change code yet. Then propose a fix plan.Template 7 — Pre-publish security review
Before I publish, do a full security review:
1) Confirm RLS is enabled on every table.
2) Make sure no secret API keys are exposed in the frontend.
3) Verify protected pages reject logged-out users.
4) Confirm each role can access only what it should.
List every issue you find and fix it.Template 8 — Polishing the user experience
Polish the user experience across the app:
- Add friendly empty states (e.g. "No items yet — add your first one").
- Add loading spinners for data fetches.
- Show success/error toast notifications after actions.
- Make sure the whole app is fully responsive on mobile.
Keep the current design language and colors consistent.Paste this into the Knowledge settings at the start of any project — it gets sent automatically with every request and makes results more consistent.
PROJECT: [app name] — [one-line description].
USERS & ROLES: [who uses it and what each role can do].
TECH: React, Tailwind, Supabase (auth + database), Stripe for payments.
USER FLOW: [step 1] -> [step 2] -> [step 3].
DESIGN: [style], [accent color], clean and consistent, mobile-first.
RULES: small iterations; enable RLS on all tables; never expose secret
keys; ask before large refactors; keep existing pages intact unless told.Test your understanding
Using the templates.
Glossary — every technical term in plain language
You won't fear any term after today. These are all the words you'll encounter in Lovable, explained in language anyone can understand — no coding background needed.
Don't memorize these terms by heart. Come back to them only when you need them. Understanding comes from practice, not memorization.
Next Steps + Your Certificate
You finished a journey that took you from "I don't know what Lovable is" to "I can build a complete SaaS app and publish it." Here's what to do now to turn knowledge into results.
Your first 7-day plan
Day 1 — Open an account and build a page
Sign up at lovable.dev on the free plan. Use Template 1 and build a landing page for a simple idea. Try Visual Edits.
Days 2–3 — Write the Knowledge file and lock the frontend
Paste the Knowledge template and edit it. Build all your app's pages with mock data until the look satisfies you.
Days 4–5 — Connect accounts and the database
Add Supabase: login and one data table with a dashboard. Enable RLS.
Day 6 — Review and security
Run the security review template. Fix every issue. Ask for a UX polish.
Day 7 — Publish
Press Publish. Share the link with 3 people and ask for feedback. This is your first real learning loop.
Resources to keep learning
Official docs
docs.lovable.dev — the complete platform guide and the newest features first.
Lovable channel
Short video tutorials and live build examples from the team and community.
Lovable community
A forum and groups where builders share templates and solutions to common problems.
Build and repeat
The best resource is your own hands. Every app you build multiplies your skill.
Two years ago, building this required a team, thousands of dollars, and months. Today you — with this knowledge — have the power to turn an idea into a live product in days. The only difference between you and someone who launched their project: they started. Start today.
Course completion certificate
Complete every lesson (mark "I finished this lesson" in each) so your progress reaches 100% and your certificate appears here automatically.
Your current progress is 0%. Complete the rest of the lessons to unlock it.
Now it's your turn. Open Lovable, write your first prompt, and turn your idea into reality. Good luck!