❤️ أكاديمية Lovableالمسار الاحترافي الكامل بالعربية
🧭 ابدأ هنا
0%
🎓Ask the CoachLive AI assistant
آخر تحديث: يوليو ٢٠٢٦
كورس تفاعلي · ١٩ درساً تفاعلياً · لغير التقنيين

تعلّم Lovable من الصفر إلى احتراف بناء التطبيقات
بدون أن تكتب سطر برمجة واحد

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

ملايينمستخدم حول العالم
Full‑stackواجهة + خلفية في أداة واحدة
دقائقلإطلاق نموذج أوّلي
$0لتبدأ التجربة مجاناً
🎥درس فيديو (عربي)Metics Media · عربي
فيديو شرح
مدخل شامل لمفهوم «الفايب كودنغ»: كيف تبني بالذكاء الاصطناعي من فكرة إلى تطبيق — وهو أساس هذه الدورة · شاهد على يوتيوب ↗

لمن هذا الكورس؟

🚀

روّاد الأعمال

تريد إطلاق فكرتك (MVP) بسرعة لاختبار السوق قبل توظيف مبرمجين.

🎨

المصمّمون

تحوّل تصاميمك في Figma إلى منتج حيّ قابل للاستخدام والنشر.

📊

مديرو المنتجات

تبني أدوات داخلية ولوحات تحكّم دون انتظار فريق التطوير.

💼

أصحاب الأعمال

تبني نظام حجوزات أو متجراً أو بوابة عملاء لمشروعك الخاص.

✍️

صنّاع المحتوى

تطلق أدوات وتطبيقات صغيرة لجمهورك وتحقّق منها دخلاً.

🧑‍🎓

المتعلّمون

تريد دخول عالم بناء البرمجيات من أسهل باب وأكثره عملية.

ماذا ستتقن بنهاية المسار؟

  • فهم كل ميزة في Lovable ومتى تستخدمها بالضبط (وليس مجرد عناوين عامة).
  • كتابة Prompts احترافية تُخرج لك ما تريده من المحاولة الأولى بدل عشر محاولات فاشلة.
  • ربط قاعدة بيانات وتسجيل دخول ومدفوعات حقيقية لتطبيقك — كل ذلك بالكلام.
  • النشر على دومين خاص بك، وحماية تطبيقك قبل الإطلاق.
  • التعامل مع الأخطاء والسلوك غير المتوقع كمحترف بدل الدوران في حلقة لا تنتهي.
  • بناء مشروع SaaS متكامل من البداية للنهاية باتّباع القوالب المرفقة.
💎
لماذا يساوي هذا الكورس أضعاف ثمنه؟

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

كيف تستخدم هذا الكورس بفعالية

1

تابع بالترتيب

الوحدات مبنية فوق بعضها. لا تقفز للمدفوعات قبل أن تتقن الـ Prompts.

2

طبّق فوراً

افتح Lovable في تبويب آخر وطبّق كل قالب أثناء قراءته. التعلّم باليد لا بالعين.

3

حلّ الاختبارات

في نهاية كل وحدة اختبار قصير يثبّت المعلومة. أجب قبل المتابعة.

4

علّم كـ«مكتمل»

اضغط زر «أكملت هذه الوحدة» ليُحفظ تقدّمك تلقائياً وتتابع من حيث توقّفت.

💾
تقدّمك محفوظ تلقائياً

يحفظ الموقع تقدّمك في متصفّحك. أغلِق الصفحة وعُد متى شئت — ستجد علامات الإكمال وشريط التقدّم كما تركتها.

الوحدة 01 · الأساسيات

ما هو Lovable؟

تخيّل أنك تتحدّث إلى «مهندس برمجيات» لا يكلّ ولا يملّ، تصف له ما تريد بلغتك العادية، فيبني لك التطبيق كاملاً أمام عينيك في دقائق. هذا هو Lovable باختصار.

🎥درس فيديو (عربي)Loai Khalidi
فيديو شرح
شرح Lovable من الصفر وكيفية استخدامه مجانًا (2026) — يطابق محتوى هذه الوحدة · شاهد على يوتيوب ↗

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 لاحقاً (الكود قابل للتصدير، فلا تخسر شيئاً).

🧠

اختبر فهمك

سؤالان سريعان لتثبيت المفهوم.

١. ما الذي يميّز Lovable عن أدوات No‑Code التقليدية؟
أ أنه أسرع في السحب والإفلات
ب أنه يُنتج كوداً حقيقياً تملكه ويمكن تصديره
ج أنه مجاني تماماً بلا حدود
٢. ماذا تعني كلمة «Full‑stack» في سياق Lovable؟
أ أنه يبني الواجهة فقط
ب أنه يبني قاعدة البيانات فقط
ج أنه يبني الواجهة والخلفية وقاعدة البيانات معاً
الوحدة 02 · الأساسيات

كيف يعمل المحرّك؟

قبل أن تكتب أوّل Prompt، افهم ما يحدث «خلف الستار». فهمك لطريقة تفكير Lovable هو الفرق بين نتائج مذهلة وإحباط متكرّر.

دورة العمل الأساسية (الحلقة السحرية)

كل ما تفعله في Lovable يدور في حلقة بسيطة من أربع خطوات تتكرّر باستمرار:

1

تصِف (Prompt)

تكتب ما تريد بالكلام. مثال: «أضف صفحة تواصل فيها نموذج بالاسم والبريد والرسالة».

2

يخطّط ويبني

يحلّل الذكاء الاصطناعي طلبك، يضع خطة مفاهيمية، ثم يكتب/يعدّل الملفات اللازمة.

3

تعاين (Preview)

تظهر النتيجة فوراً في معاينة حيّة على جانب الشاشة لتجرّبها بنفسك.

4

تكرّر (Iterate)

تطلب تعديلاً صغيراً، تعاين، وهكذا… كل تعديل خطوة صغيرة نحو منتجك النهائي.

🔑
القاعدة الذهبية

«تغيير واحد، ثم تحقّق». لا تطلب خمس ميزات دفعة واحدة. الطلبات الصغيرة القابلة للاختبار تُنتج نتائج أدقّ وأسهل في التصحيح.

الذكاء الاصطناعي ليس «منفّذ أوامر»… بل شريك

منذ تحديث 2.0 (منتصف 2025) أصبح Lovable يعمل بنمط «الوكيل المستقل» (Agent) افتراضياً. هذا ليس مجرّد روبوت محادثة يكتب كوداً، بل نظام يستطيع:

  • قراءة مشروعك بالكامل لفهم السياق قبل التعديل.
  • تفحّص السجلّات (Logs) لاكتشاف أسباب الأخطاء بنفسه.
  • البحث في الويب عن حلول عند الحاجة.
  • توليد الصور وإجراء تعديلات دقيقة على عدّة ملفات في وقت واحد.

هذا التطوّر مهم لأنه أنهى عصر «التعديلات الهشّة» التي كانت تكسر أجزاء أخرى من التطبيق في النسخ القديمة.

الأوضاع الثلاثة في سطر واحد

سنفصّلها لاحقاً في الوحدة 07، لكن تعرّف عليها الآن:

🧭

Plan / Chat

للتفكير والتخطيط والنقاش وحلّ المشاكل — دون أن يُعدّل أي كود.

🤖

Agent

للبناء الفعلي: ينفّذ، يصحّح، ويعدّل تلقائياً.

🎨

Visual Edits

للتعديلات الدقيقة بالنقر على العناصر مباشرة دون كتابة Prompt.

🧩
معلومة تقنية مبسّطة

عند كل تعديل، قد يُعيد Lovable كتابة الملف بالكامل وليس السطر المطلوب فقط. لهذا السبب يُفضَّل إخباره صراحةً بما لا يجب أن يلمسه («لا تعدّل ملف التخطيط الرئيسي»). ستتقن هذه الحيلة في وحدة الـ Prompts.

🧠

اختبر فهمك

ثبّت دورة العمل والقاعدة الذهبية.

١. ما القاعدة الذهبية عند البناء في Lovable؟
أ اطلب كل الميزات دفعة واحدة لتوفير الوقت
ب تغيير واحد ثم تحقّق، بخطوات صغيرة قابلة للاختبار
ج لا تعاين أبداً حتى ينتهي كل شيء
٢. أي وضع تستخدمه «للتفكير والتخطيط» دون تعديل الكود؟
أ Plan / Chat
ب Agent
ج Visual Edits
الوحدة 03 · الأساسيات

جولة في الواجهة

لن تشعر بالضياع بعد اليوم. سنفكّك كل ركن في شاشة Lovable ونعرف وظيفته بالضبط.

🎥درس فيديو (عربي)Yehia Tech · يحيى تك
فيديو شرح
جولة عملية: بناء تطبيق فعلي بـ Lovable لتتعرّف على الواجهة وأركان الشاشة أثناء العمل · شاهد على يوتيوب ↗

المناطق الرئيسية في الشاشة

💬

لوحة المحادثة (Chat)

على جانب الشاشة — هنا تكتب طلباتك وترى ردود الذكاء الاصطناعي وخطواته. هي مركز قيادتك.

👁️

المعاينة الحيّة (Preview)

الجزء الأكبر — يعرض تطبيقك وهو يعمل لحظياً. كل تعديل يظهر هنا فوراً.

🎨

عرض التصميم (Design View)

طبقة بصرية أُضيفت في النسخة 2.0 — تعدّل الألوان والخطوط والمسافات بأدوات شبيهة بـ Figma.

📁

عرض الكود وهيكل المشروع

لمن يريد الاطّلاع — ترى الملفات الفعلية. لست مضطراً لفهمها، لكن من الجيد معرفة وجودها.

أدوات لا بدّ أن تعرفها

🔁 زر الإرجاع (Revert / Restore)+
أهم زر في حياتك! يعيد مشروعك إلى نسخة سابقة مستقرة إذا أفسد تعديلٌ ما شيئاً. اعتبره «آلة الزمن». كل نسخة محفوظة، فجرّب بجرأة دون خوف.
🖱️ ميزة التحديد (Select)+
تنقر على عنصر معيّن في المعاينة (زر، عنوان، صورة) لتحدّده، ثم تطلب تعديله بدقة دون أن يتشتّت الذكاء الاصطناعي عن باقي الصفحة.
🎨 الثيمات (Themes)+
لوحة مركزية تتحكّم بهويّة تطبيقك البصرية: الألوان، الخطوط، المسافات — من مكان واحد مع معاينة فورية. عرّف هويّتك مرة، فتنتشر على كل الصفحات تلقائياً. توفير هائل للوقت في المشاريع.
📤 النشر (Publish)+
زر واحد يرفع تطبيقك إلى الإنترنت على رابط فرعي (مثل yourapp.lovable.app)، أو على دومينك الخاص في الخطط المدفوعة. سنفرد له وحدة كاملة لاحقاً.
🔗 التكاملات (Integrations)+
من هنا تربط Supabase (قاعدة البيانات والحسابات)، Stripe (المدفوعات)، GitHub (تصدير الكود)، وخدمات أخرى. كل ربط بنقرات معدودة.
🧪
نصيحة المبتدئ الذكي

ابدأ دائماً بمشروع فارغ وابنِ تدريجياً. هذا يساعد الذكاء الاصطناعي على استيعاب المفاهيم الأساسية أولاً قبل الدخول في التفاصيل، ويعطيك نتائج أنظف من «اطلب كل شيء دفعة واحدة».

أين تقضي وقتك فعلاً؟

المفاجأة: المحترفون لا يقضون معظم وقتهم في كتابة الأوامر النصية ولا في محرّر الكود. بل في الطبقة البصرية — يضبطون التفاصيل الصغيرة التي تجعل المنتج «يبدو ويشعر صحيحاً». الكلام يبني الهيكل، والنقر البصري يصقل التفاصيل.

🧠

اختبر فهمك

هل تعرف أدواتك؟

١. أفسد تعديلٌ ما تطبيقك. ما أسرع حلّ؟
أ تبدأ مشروعاً جديداً من الصفر
ب تعدّل الكود يدوياً
ج تستخدم زر الإرجاع (Revert) للعودة لنسخة مستقرة
٢. ما أفضل طريقة لبدء مشروع جديد كمبتدئ؟
أ اطلب كل الميزات في أوّل Prompt
ب ابدأ فارغاً وابنِ تدريجياً
ج انسخ مشروعاً جاهزاً وعدّله
الوحدة 04 · الإعداد والتكلفة

الأسعار والكريدِت (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 مذهلة فعلاً — حتى مع التكاليف الخفيّة.

🧮 حاسبة التكلفة الحقيقية

اختر خطتك وأضف ما تحتاجه، لنحسب ميزانيتك الشهرية التقديرية. (تقديرات إرشادية فقط — الأسعار تتغيّر؛ راجع الصفحات الرسمية.)

قاعدة بيانات إنتاجية +$25 دومين خاص +$1 خدمة بريد +$20
🧠

اختبر فهمك

هل فهمت اقتصاديات المنصة؟

١. لماذا تُعدّ كتابة Prompts دقيقة توفيراً للمال؟
أ لأنها ترفع سعر الخطة
ب لأنها تقلّل المحاولات الفاشلة التي تستهلك الكريدِت
ج لا علاقة لها بالمال
٢. أيٌّ مما يلي تكلفة «خفيّة» شائعة لا تتضمّنها خطة Lovable؟
أ لوحة المحادثة
ب زر الإرجاع
ج رسوم Stripe على كل عملية دفع
الوحدة 05 · الإتقان · الأهمّ في الكورس

فنّ كتابة الـ Prompts

هذه الوحدة وحدها تستحقّ ثمن الكورس. الفرق بين من يبني منتجاً في ساعة ومن يدور في حلقة إحباط لأسبوع هو جودة الطلب. ستتعلّم هنا منهجية مثبتة، لا حظّاً.

🎥درس فيديو (عربي)Smart Tech Arabic
فيديو شرح
أسرار كتابة البرومبت كالمحترفين — طبّقها على طلباتك في Lovable لنتائج أدقّ · شاهد على يوتيوب ↗
🧠
المبدأ الأساس

عامِل الذكاء الاصطناعي كشريك هندسي ذكيّ لكنه «لا يعرف إلا ما تخبره به». الوضوح والتفصيل = نتائج أفضل. الغموض = تخمين وأخطاء.

القاعدة الثلاثية: «أين، ماذا، وما لا تلمسه»

📍

قُل أين

حدّد الصفحة أو العنصر بدقّة: «في صفحة /dashboard» أو «في زرّ التسجيل».

🎯

قُل ماذا

اشرح السلوك المتوقّع بوضوح: «عند الضغط، يفتح نافذة تأكيد».

🚫

قُل ما لا تلمسه

ضع حواجز حماية: «لا تعدّل ملف التخطيط الرئيسي /Layout».

القالب الذهبي لبدء مشروع جديد

استخدم هذا الهيكل المثبت في أوّل Prompt لأي مشروع. انسخه وعدّل محتواه:

starter-prompt.txt · English
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.
لاحظ التفاصيل الذكية

طلبنا البدء بصفحة واحدة فقط («ابدأ بالصفحة الرئيسية فقط، لا تبنِ لوحة التحكّم بعد») + محتوى واقعي بدل النصوص الوهمية. هذا يمنحك أساساً نظيفاً تبني عليه.

خمس عادات تفصلك عن المحترفين

  1. فكّر بالمكوّنات: اطلب «بطاقة منتج» مرة واحدة بشكل مثالي، ثم اطلب تكرارها — بدل وصف كل بطاقة على حدة.
  2. استخدم محتوى حقيقياً: الأسماء والأسعار والنصوص الواقعية تجعل النتيجة أقرب للحقيقة وتكشف مشاكل التصميم مبكراً.
  3. كرّر التعليمات المهمّة: ذاكرة الذكاء الاصطناعي محدودة. أعِد ذكر القيد المهمّ في كل Prompt («تذكّر: لا تغيّر تصميم الهيدر»).
  4. تكرار صغير: «تغيير واحد ثم تحقّق» — لا تطلب خمس ميزات معاً.
  5. أرفق صوراً: لوصف خطأ بصري أو شكل مطلوب، أرفق لقطة شاشة. الصورة أبلغ من ألف كلمة.

تقنية متقدّمة: «Meta‑Prompting»

بدل أن تكتب الطلب يدوياً وتتمنّى الأفضل، استخدم الذكاء الاصطناعي نفسه (مثل ChatGPT أو Claude) ليحسّن طلبك قبل لصقه في Lovable:

meta-prompt · عربي
أريد بناء تطبيق [وصف فكرتك بإيجاز]. صُغ لي Prompt احترافياً
ومفصّلاً بالإنجليزية لمنصة Lovable يتضمّن: نوع التطبيق، التقنيات،
المستخدمين وأدوارهم، الصفحات الأساسية، والميزات — مرتّبة بأولوية
منطقية للبناء. اجعله واضحاً ومحدّداً قدر الإمكان.

تقنية أقوى: «Reverse Meta‑Prompting»

بعد أن تواجه خطأً وتحلّه، اطلب من الذكاء الاصطناعي أن يوثّق سبب المشكلة وحلّها ليصبح طلبك المستقبلي أدقّ. أنت تبني حلقة تحسين ذاتية:

reverse-meta · عربي
راجِع هذا الطلب الذي استخدمته، واشرح لماذا أنتج سلوكاً غير متوقّع،
ثم اقترح صيغة محسّنة منه تتجنّب نفس المشكلة مستقبلاً.
😤
حيلة طريفة لكنها حقيقية

عندما يستمرّ الذكاء الاصطناعي في تجاهل نقطة، نمط «I am frustrated…» («أنا محبَط لأن الزر ما زال لا يعمل، ركّز على هذه المشكلة فقط») يدفعه أحياناً للتركيز بشكل أفضل! نعم، هذه نصيحة موثّقة فعلاً.

⚙️ مولّد الـ Prompt الاحترافي

املأ الحقول، واضغط الزر ليبني لك Prompt إنجليزياً منظّماً جاهزاً للصقه في Lovable.

عصري بسيط مرح وملوّن رسمي احترافي فاخر أنيق
🧠

اختبر فهمك

القاعدة الثلاثية وأكثر.

١. ما العناصر الثلاثة لطلب فعّال؟
أ طويل، رسمي، بالإنجليزية
ب سريع، غامض، عام
ج أين (المكان)، ماذا (السلوك)، وما لا تلمسه (الحواجز)
٢. ما هو الـ «Meta‑Prompting»؟
أ استخدام ذكاء اصطناعي لتحسين طلبك قبل لصقه في Lovable
ب كتابة الطلب بأحرف كبيرة
ج حذف كل التفاصيل من الطلب
الوحدة 06 · الإتقان

ملف المعرفة (Knowledge File)

إن كان الـ Prompt هو الرسالة، فملف المعرفة هو «دماغ مشروعك». إتقانه يقلّل الأخطاء و«الهلوسة» بشكل جذري.

لماذا هو مهمّ إلى هذه الدرجة؟

ملف المعرفة هو مستند يُرسَل مع كل طلب تلقائياً، فيمنح الذكاء الاصطناعي السياق الكامل لمشروعك في كل مرة. بدونه، أنت تذكّره بكل شيء يدوياً في كل رسالة. معه، يفهم رؤيتك ومستخدميك وقواعدك دون أن تكرّرها.

🧠
تشبيه

تخيّل موظفاً جديداً يبدأ كل صباح بذاكرة فارغة. ملف المعرفة هو «دليل التعريف» الذي يقرأه كل صباح ليتذكّر من أنت وماذا تبني ولماذا.

ماذا تضع فيه؟

  • نظرة عامة: ما الذي تبنيه ولمن، وما المشكلة التي يحلّها.
  • المستخدمون وأدوارهم: مثال — «مستخدم بدور Investor يرى هذا المكوّن، لكن Admin لا يراه».
  • التقنيات المستخدمة: React، Supabase، إلخ.
  • تدفّق المستخدم (User Flow): كيف يتنقّل الشخص داخل التطبيق.
  • الإرشادات البصرية: الألوان، الخطوط، الطابع العام.
  • قواعد وحواجز: «لا تعدّل ملف X»، «استخدم دائماً مكوّنات Tailwind الجاهزة».

قالب جاهز لملف المعرفة

knowledge.md · English
# 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» — فيكتبه لك تلقائياً من واقع مشروعك.

🧠

اختبر فهمك

دماغ المشروع.

١. متى يُرسَل ملف المعرفة للذكاء الاصطناعي؟
أ مرة واحدة عند إنشاء المشروع
ب مع كل طلب تلقائياً
ج فقط عند النشر
٢. أيٌّ مما يلي يجب أن يكون في ملف المعرفة؟
أ رقم بطاقتك الائتمانية
ب كلمة مرور حساب Stripe
ج المستخدمون، أدوارهم، والقواعد التي يجب عدم كسرها
الوحدة 07 · الإتقان

الأوضاع الثلاثة: متى تستخدم كلًّا منها

استخدام الوضع الخطأ في اللحظة الخطأ يهدر وقتك وكريدِتك. هنا تتعلّم اختيار الأداة الصحيحة لكل مهمّة.

🎥درس فيديو (عربي)Darrel Wilson · عربي
فيديو شرح
احتراف Lovable (تحديث 2.0): الأوضاع والميزات الجديدة — مكمّل لشرح الأوضاع هنا · شاهد على يوتيوب ↗

وضع التخطيط والنقاش

شريك تفكير. تتناقشان وتخطّطان وتصحّحان معاً دون أن يُعدّل أي كود. مثالي لـ:

  • التفكير في بنية ميزة جديدة قبل بنائها.
  • تشخيص سبب خطأ («لماذا لا يعمل هذا؟») دون المخاطرة بتغييرات.
  • توليد ملف المعرفة أو خطة عمل.
🛡️
قاعدة ذهبية

صحّح في وضع Plan أولاً. افهم المشكلة، ثم انتقل لـ Agent للتنفيذ. هذا يمنع التعديلات العشوائية المتسرّعة.

وضع الوكيل (البناء)

الوضع الافتراضي منذ يوليو 2025. نظام مستقلّ يبني فعلياً: يبحث في مشروعك، يقرأ السجلّات، يصحّح الأخطاء بنفسه، ويعدّل عدّة ملفات بدقّة. استخدمه لـ:

  • بناء الميزات وتنفيذ التغييرات.
  • إصلاح الأخطاء بعد فهمها في وضع Plan.
  • أي مهمة تتطلّب «تنفيذاً» لا «نقاشاً».

التعديلات البصرية

تنقر على عنصر مباشرة في المعاينة وتعدّله دون كتابة Prompt ودون استهلاك كريدِت توليد عادةً. مثالي لـ:

  • تغيير نصّ، لون، حجم خطّ، أو مسافة بسرعة.
  • الصقل النهائي للتفاصيل الدقيقة.
  • كل من يفضّل النقر على الكتابة.
الأسرع للتفاصيل

بدل أن تكتب «اجعل العنوان أكبر قليلاً ولونه أغمق» وتنتظر، انقر العنوان وعدّله بصرياً في ثوانٍ.

خلاصة الاختيار

المهمةالوضع الأمثل
التخطيط والتفكير في ميزةPlan
تشخيص خطأ قبل إصلاحهPlan
بناء ميزة أو تنفيذ تغييرAgent
تعديل لون/نص/مسافة بسرعةVisual Edits
🧠

اختبر فهمك

الأداة الصحيحة لكل مهمة.

١. تريد تشخيص سبب خطأ دون المخاطرة بأي تغيير. أي وضع؟
أ Plan / Chat
ب Agent
ج النشر مباشرة
٢. تريد تكبير عنوان وتغيير لونه بسرعة. الأفضل؟
أ كتابة Prompt مفصّل
ب إعادة بناء الصفحة
ج Visual Edits — النقر المباشر
الوحدة 08 · البناء المتكامل

قاعدة البيانات والحسابات (Supabase)

هنا يتحوّل تطبيقك من «صفحة جميلة» إلى «منتج حقيقي» يحفظ البيانات ويعرف مستخدميه. لا تقلق — سنشرح كل شيء بلغة بسيطة.

🎥درس فيديو (عربي)MrPhantom · مستر فانتوم
فيديو شرح
بناء موقع كامل بـ Lovable مع الجزء الخلفي (قاعدة البيانات وحسابات المستخدمين) خطوة بخطوة · شاهد على يوتيوب ↗

ما «قاعدة البيانات» أصلاً؟ (بلا تعقيد)

تخيّل جدول Excel ضخماً ومنظّماً يعيش على الإنترنت. كل صفّ سجلّ (مستخدم، طلب، منتج…) وكل عمود معلومة. قاعدة البيانات هي ذاكرة تطبيقك الدائمة: عندما يسجّل مستخدم حساباً أو يضيف منتجاً، يُحفَظ هنا ويبقى حتى لو أغلق المتصفّح.

و«المصادقة» (Authentication) ببساطة: نظام تسجيل الدخول الذي يتأكّد «من أنت» — بريد وكلمة مرور، أو دخول عبر Google.

ما هو Supabase ولماذا يستخدمه Lovable؟

Supabase هو خدمة الخلفية التي يعتمد عليها Lovable لتوفير:

🗄️

قاعدة بيانات PostgreSQL

قوية وموثوقة، مع قدرات لحظية (real‑time).

🔐

تسجيل الدخول

بريد/كلمة مرور + مزوّدو OAuth مثل Google.

📦

تخزين الملفات

صور المستخدمين، المرفقات، الملفات.

⚙️

Edge Functions

منطق خادم بسيط للمهام التلقائية.

⚠️
تكامل Supabase إلزامي للخلفية

أي ميزة تحتاج تخزين بيانات أو تسجيل دخول تتطلّب ربط Supabase. الطبقة المجانية مناسبة للتطوير فقط؛ مشروعك الإنتاجي سيحتاج غالباً Supabase Pro (~$25/شهر) عند النموّ.

كيف تربطه؟ خطوات عملية

1

من قائمة التكاملات

افتح Integrations في مشروعك واختر Supabase، ثم اربط حسابك (أو أنشئ واحداً مجانياً).

2

اطلب الميزة بالكلام

مثال: «أضف تسجيل دخول بالبريد وكلمة المرور، وبعد الدخول وجّه المستخدم إلى /dashboard».

3

دع Lovable يبني الجداول

سيقترح هيكل البيانات (الجداول والأعمدة) وينفّذه. راجِعه وأكّد.

4

اختبر

سجّل حساباً تجريبياً وتأكّد أن البيانات تُحفَظ وأنّ الأدوار تعمل.

قالب Prompt لإضافة الحسابات

auth-prompt.txt · English
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 ليرى كل مستخدم بياناته فقط. سنعمّق هذا في وحدة الأمان.

🧠

اختبر فهمك

أساسيات الخلفية.

١. ما وظيفة قاعدة البيانات في تطبيقك؟
أ تصميم الألوان
ب حفظ البيانات بشكل دائم (الذاكرة الدائمة)
ج نشر التطبيق على الإنترنت
٢. أي خدمة يستخدمها Lovable للخلفية والمصادقة؟
أ Supabase
ب Figma
ج Photoshop
الوحدة 09 · البناء المتكامل

استقبال المدفوعات (Stripe)

أجمل تطبيق بلا وسيلة دفع هو هواية. هنا تتعلّم تحويل تطبيقك إلى مصدر دخل حقيقي.

🎥درس فيديو (عربي)AYMEN DEV
فيديو شرح
بناء مشروع SaaS كامل وربط بوابة الدفع Stripe خطوة بخطوة — قلب هذه الوحدة · شاهد على يوتيوب ↗
🎥درس فيديو (عربي)قلم تقني · Mostafa Amin
فيديو شرح
مهم للعرب: كيف تفتح حساب Stripe مفعّلًا وأنت مواطن عربي — الخطوة التي يتعثّر فيها كثيرون · شاهد على يوتيوب ↗

ماذا يدعم تكامل Stripe في Lovable؟

🔄

اشتراكات متكرّرة

خطط شهرية/سنوية مع دعم الـ Webhooks للتفعيل التلقائي.

💵

دفعة لمرة واحدة

بيع منتج أو خدمة بسعر ثابت مباشرة.

🏪

أسواق متعدّدة البائعين

عبر Stripe Connect، لكل بائع حسابه المربوط الخاص.

💳
رسوم Stripe (وليست رسوم Lovable)

Stripe يأخذ تقريباً ٢.٩٪ + $0.30 لكل عملية (السعر القياسي في الولايات المتحدة — يختلف حسب البلد ووسيلة الدفع؛ راجع stripe.com). مثال تقريبي: مبيعات بـ 10,000$ شهرياً ≈ 290–590$ رسوم معالجة. لا تفرض Lovable رسوم منصّة إضافية على المدفوعات.

خطوات الربط

1

أنشئ حساب Stripe

مجاني، وتحصل على «مفاتيح API» من لوحة تحكّم Stripe.

2

اربطه عبر التكاملات

الصق المفاتيح في إعدادات التكامل داخل Lovable.

3

اطلب صفحة الأسعار بالكلام

صف الخطط وأسعارها، ودع Lovable يبني الأزرار وربط الدفع.

4

اختبر بوضع التجربة

Stripe يوفّر «بطاقات اختبار» لتجرّب الدفع دون مال حقيقي قبل الإطلاق.

قالب Prompt لصفحة اشتراكات

stripe-prompt.txt · English
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 (معلومات النشاط والحساب البنكي)، والانتباه إلى الضرائب والامتثال في بلدك. اختبر كل المسار جيداً في وضع التجربة أولاً.

⚖️ هذا المحتوى للأغراض التعليمية وليس استشارة قانونية أو مالية أو ضريبية — راجع مختصاً في بلدك.

🧠

اختبر فهمك

المال يدخل.

١. كم تأخذ Stripe تقريباً لكل عملية دفع؟
أ 10% ثابتة
ب 2.9% + $0.30
ج مجانية تماماً
٢. كيف تختبر الدفع بأمان قبل الإطلاق؟
أ بمالك الحقيقي
ب لا يمكن اختباره
ج عبر وضع التجربة وبطاقات Stripe الاختبارية
الوحدة 10 · البناء المتكامل

النشر، الدومين، والأمان

لحظة الإطلاق! سنخرج تطبيقك إلى العالم على دومينك الخاص، ونحميه قبل أن يراه أحد.

🎥درس فيديو (عربي)Elzero Web School
فيديو شرح
تبسيط مفاهيم الدومين والاستضافة والنشر — لتفهم ما يحدث عند ربط دومينك الخاص · شاهد على يوتيوب ↗

النشر بنقرة

اضغط زر Publish فيُرفَع تطبيقك مباشرة على رابط فرعي مثل yourapp.lovable.app. يصبح حيّاً على الإنترنت في ثوانٍ، وأي شخص يملك الرابط يستطيع استخدامه.

🌐
الرابط الفرعي للتجربة لا للإطلاق الجادّ

رابط lovable.app ممتاز للاختبار والمشاركة السريعة، لكنه ليس احترافياً بما يكفي لإطلاق لعملاء أو مستثمرين. هنا يأتي دور الدومين الخاص.

ربط دومينك الخاص

1

اشترِ دومين

من Namecheap أو GoDaddy أو غيرهما (~$12/سنة لـ .com). الدومين غير مشمول في اشتراك Lovable.

2

افتح إعدادات الدومين في Lovable

متاح في الخطط المدفوعة (Pro فأعلى) — ودومينات غير محدودة.

3

اضبط سجلّات DNS

تنسخ القيم التي يعطيك إياها Lovable وتضعها في لوحة الدومين. خطوة بسيطة موثّقة.

4

انتظر التفعيل

قد يستغرق الانتشار دقائق إلى ساعات، ثم يصبح تطبيقك على دومينك مع شهادة HTTPS تلقائياً.

🔒 الأمان قبل الإطلاق — لا تتهاون هنا

بعد عددٍ من الحوادث الأمنية التي طالت مواقع مستضافة على Lovable، أضافت المنصّة فحوصات أمان. افحص تطبيقك دائماً قبل النشر العلني. (هذا المحتوى تعليمي وليس استشارة أمنية احترافية؛ للأنظمة الحسّاسة استعِن بمختصّ.)

🛡️

صلاحيات الصفوف (RLS)

تأكّد أن كل مستخدم يصل لبياناته فقط، لا لبيانات الآخرين.

🔑

المفاتيح السرّية

لا تضع مفاتيح API الحسّاسة في الواجهة الأمامية أبداً — اطلب وضعها في أسرار الخادم.

التحقّق من المدخلات

تحقّق من البيانات التي يرسلها المستخدم لمنع المدخلات الخبيثة.

🔍

فحص الأمان المدمج

استخدم أداة فحص الأمان في Lovable قبل الضغط على Publish.

security-prompt.txt · English
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.
🧠

اختبر فهمك

جاهز للإطلاق؟

١. ما الفرق بين رابط lovable.app والدومين الخاص؟
أ لا فرق
ب الرابط الفرعي للتجربة، والدومين الخاص أكثر احترافية للإطلاق
ج الدومين الخاص مجاني دائماً
٢. ما الذي يجب التأكّد منه أمنياً قبل النشر؟
أ تفعيل RLS وعدم كشف المفاتيح السرّية
ب تغيير لون الزر فقط
ج حذف صفحة الأسعار
الوحدة 11 · البناء المتكامل

GitHub وملكية الكود

أكبر ميزة تحرّرية في Lovable: أنت تملك كودك. لست سجيناً لدى المنصة.

ماذا يعني «تصدير إلى GitHub»؟

GitHub هو «خزانة» عالمية لحفظ الكود ومشاركته. Lovable يتيح ربط مشروعك بمستودع GitHub، فيُزامَن الكود تلقائياً. هذا يعني:

  • تملك الكود فعلياً: نسخة كاملة بين يديك، لا حبيسة المنصة.
  • نسخ احتياطية ونُسخ زمنية: سجلّ كامل لكل تغيير.
  • طريق للنموّ: يمكنك البدء على Lovable ثم الانتقال لكود مخصّص (أو أدوات مثل Cursor) عند التوسّع، دون خسارة عملك.
  • تعاون: يعمل مبرمجون معك على نفس المشروع لاحقاً.
⚠️
ملاحظة مهمّة

Lovable يبني تطبيقات جديدة من الصفر. لا يمكنك حالياً استيراد مستودع GitHub قائم لتعديله داخل Lovable. الاتجاه هو من Lovable إلى GitHub، لا العكس.

🚀
استراتيجية النموّ الذكية

اختبارات واقعية تُظهر أن Lovable مثالي لمرحلة 0→1 (من الفكرة لأول نسخة). للتطبيقات الضخمة جداً أو المعقّدة جداً، خطّط للانتقال لكود مخصّص لاحقاً. التصدير إلى GitHub يجعل هذا الانتقال ممكناً وسلساً.

🧠

اختبر فهمك

من يملك الكود؟

١. ما الفائدة الكبرى لتصدير الكود إلى GitHub؟
أ يجعل التطبيق أسرع
ب يضاعف عدد المستخدمين
ج تملك كودك وتستطيع الانتقال أو التعاون لاحقاً
٢. هل يمكن استيراد مستودع GitHub قائم لتعديله داخل Lovable؟
أ نعم بسهولة
ب لا — Lovable يبني تطبيقات جديدة، والاتجاه نحو GitHub
ج فقط في الخطة المجانية
الوحدة 12 · البناء المتكامل

حلّ المشاكل والتصحيح كالمحترفين

ستواجه أخطاءً. هذا طبيعي. الفرق أنّ المحترف يحلّها بهدوء ومنهجية، بينما يدور المبتدئ في حلقة إحباط. ستصبح من الأوّلين.

🎥درس فيديو (عربي)Elzero Web School
فيديو شرح
تجربة صريحة لعيوب ومميزات الـ vibe coding — لتعرف حدود الأداة ومتى تنتبه · شاهد على يوتيوب ↗

نوعان من المشاكل

🔴

أخطاء صريحة (Errors)

الكود يتوقّف ويظهر رسالة خطأ. غالباً يحلّها Agent تلقائياً عند إخباره.

🟡

سلوك غير متوقّع

الكود يعمل بلا خطأ، لكن النتيجة ليست ما أردت. الأصعب — ويحتاج منهجية.

منهجية التصحيح في 5 خطوات

1

أعِد تتبّع خطواتك

راجِع ما طلبته أصلاً. هل كان طلبك واضحاً؟ أين بدأ الانحراف؟

2

فكّك المشكلة

حدّد القسم المعطوب بدقّة. لا تقل «لا يعمل»، بل «زر الحفظ في صفحة الإعدادات لا يحفظ».

3

استخدم الصور

أرفق لقطة للنتيجة الحالية مقابل المطلوب. الفرق البصري يوضّح المشكلة فوراً.

4

شخّص في وضع Plan

اسأل «لماذا يحدث هذا؟» في Plan قبل أي تعديل، لتفهم السبب الجذري.

5

أرجِع إذا لزم

إن تفاقمت الأمور، زر Revert يعيدك لآخر نسخة مستقرّة. لا تتردّد.

قالب Prompt لتشخيص خطأ

debug-prompt.txt · English
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 تنشئ نسخة نظيفة من مشروعك عند نقطة الصفر، فتبدأ بطلبات أفضل ومعرفة أوضح، مستخدماً القديم كمرجع. إعادة البناء ليست فشلاً — بل قرار استراتيجي يتّخذه أفضل البنّائين بوعي.

🧘
عقلية صحيّة

البناء مع الذكاء الاصطناعي «محادثة لا أمر». سيُسيء الفهم أحياناً، وسيتراجع أحياناً، وقد ينتج شيئاً مختلفاً تماماً. هذا طبيعي. الناجحون هم من يقسّمون العمل لأجزاء صغيرة قابلة للاختبار ويصبرون على التكرار.

🧠

اختبر فهمك

هدوء ومنهجية.

١. تطبيقك يعمل بلا رسالة خطأ لكن النتيجة خاطئة. هذا يُسمّى؟
أ خطأ صريح
ب سلوك غير متوقّع
ج انقطاع الإنترنت
٢. ما هي استراتيجية Remix؟
أ حذف الحساب
ب إلغاء الاشتراك
ج بدء نسخة نظيفة بطلبات أفضل، مستخدماً القديم كمرجع
الوحدة 13 · التطبيق العملي

دراسات حالة حقيقية

القصص أبلغ من النظريات. إليك أمثلة واقعية — نجاحات ملهمة ودرس تحذيري — لتتعلّم من تجارب الآخرين.

ℹ️
ملاحظة

هذه أمثلة توضيحية لأنماط استخدام واقعية؛ الأرقام تقريبية وقد تختلف من حالة لأخرى. خذ منها الدرس لا الرقم الحرفي.

🔥

محرّك «العدالة» لضحايا حرائق لوس أنجلوس

شاليني أناندا · أثر اجتماعي

بنت شاليني أناندا أداة لمساعدة ضحايا حرائق لوس أنجلوس 2025 على الوصول العادل للموارد والدعم — مستخدمةً Lovable. الدرس: السرعة في البناء تعني أنّ الفكرة الإنسانية تصبح أداة فعلية في أيدي المحتاجين خلال أيام، لا أشهر. عندما تكون الحاجة عاجلة، تكون القدرة على البناء السريع إنقاذاً حرفياً.

🎖️

توماس: عدّة تطبيقات وتعلّم البرمجة عملياً

جندي ومطوّر كندي · مثابرة
عدّةتطبيقات مُطلَقة

توماس، جندي مشاة كندي، استخدم Lovable لبناء وإطلاق عدّة تطبيقات — منها أداة DummyForms — وفي الطريق أتقن أساسيات الواجهة والخلفية. الدرس: Lovable ليس مجرّد أداة إنتاج، بل مدرسة عملية. كل مشروع علّمه شيئاً، والكميّة (مع التكرار) صنعت الخبرة.

📈

مستثمر مغامر يضاعف إنتاجيته أضعافاً

رأس مال مغامر · إنتاجية
أضعافإنتاجية

اكتشف مستثمرٌ Lovable فأعاد بناء موقعه، وحسّن أنظمته الخلفية، وضاعف إنتاجيّته أضعافاً. الدرس: حتى غير المبرمجين في أدوار قيادية يستطيعون بناء أدواتهم الخاصة بدل انتظار فريق تقني — فيتحرّكون أسرع ويتحكّمون أكثر.

🧪

SaaS MVP في أسابيع بدل أشهر

فريق تطوير · سرعة الإطلاق
أسابيعبدل أشهر

بنى فريق نسخة SaaS أولية في أسابيع قليلة كانت ستستغرق أشهراً بالطريقة التقليدية — تسجيل دخول (عبر Clerk)، اشتراكات (Stripe)، عمليات قاعدة بيانات، وتكاملات API. الدرس: Lovable يختصر زمن الوصول للسوق بشكل هائل في مرحلة 0→1.

⚠️

درس تحذيري: مشروع ضخم بعشرات الآلاف من الأسطر

@levelsio · حدود الأداة

ربط مطوّرٌ مشروع SaaS ضخماً (عشرات الآلاف من الأسطر) عبر GitHub. اقترح Lovable عشرات التغييرات: معظمها صحيح، لكن بعضها كسر وظائف وبعضها أدخل ثغرات أمنية — فاستلزم ساعاتٍ من المراجعة البشرية للتحقّق. الدرس: للمشاريع الضخمة والمعقّدة، الإشراف البشري ضروري. Lovable رائع في البناء السريع، لكنه ليس بديلاً عن المراجعة في الأنظمة الحرجة.

قالب من الواقع: «Monthly Close Copilot»

هذا مثال على Prompt مُهيكَل لأداة محاسبية حقيقية — لاحظ كيف يُعرّف الهدف، الأدوار، والكيانات بدقّة:

real-world-prompt.txt · English
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.
💡
القاعدة المستخلصة

الطلب الجيّد «مفصّل في الأماكن الصحيحة»: الهدف، المستخدمون، البيانات، الشاشات، التدفّقات، والقواعد. هذا ما يحوّل فكرة غامضة إلى مواصفات قابلة للبناء.

الوحدة 14 · التطبيق العملي · المشروع الكبير

مشروع كامل خطوة بخطوة

سنبني معاً تطبيق حجز مواعيد كاملاً اسمه «BookEasy» — من صفحة فارغة إلى منتج منشور يستقبل مدفوعات. انسخ كل Prompt بالترتيب وطبّقه في Lovable.

🎥درس فيديو (عربي)Darrel Wilson · عربي
فيديو شرح
مشروع كامل: إطلاق تطبيق SaaS من الصفر — تطبيق عملي طويل يجمع كل ما تعلّمته · شاهد على يوتيوب ↗
🎯
الفكرة

تطبيق يتيح لأصحاب الأنشطة (صالون، عيادة، استشاري) استقبال حجوزات المواعيد أونلاين، وللعملاء حجز موعد ودفع عربون. ثلاثة أدوار: عميل، صاحب نشاط، مدير.

الخطوة 1 — الأساس وملف المعرفة

ابدأ بمشروع فارغ، ثم في وضع Plan اطلب توليد ملف المعرفة:

step-1.txt · English
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 — الصفحة الرئيسية فقط

step-2.txt · English
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 — تسجيل الدخول والأدوار

step-3.txt · English
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 — لوحة صاحب النشاط

step-4.txt · English
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 — تجربة العميل والحجز

step-5.txt · English
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)

step-6.txt · English
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 — الصقل ثم الأمان ثم النشر

step-7.txt · English
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 متكاملاً: صفحة تسويق، حسابات وأدوار، حجوزات، مدفوعات، أمان، ونشر. هذا بالضبط ما كان يكلّف آلاف الدولارات وأسابيع من العمل. غيّر فكرة التطبيق وكرّر نفس الهيكل لأي مشروع آخر.

🧠

اختبر فهمك

منهجية البناء.

١. لماذا بدأنا بالصفحة الرئيسية فقط قبل المدفوعات؟
أ لأنّ الصفحة الرئيسية الأهمّ ربحياً
ب لنبني بخطوات صغيرة قابلة للاختبار ونثبّت الأساس أولاً
ج لأنّ المدفوعات غير مهمّة
٢. متى أجرينا مراجعة الأمان؟
أ قبل بناء أي شيء
ب لم نجرِها أبداً
ج بعد اكتمال الميزات وقبل النشر مباشرة
الوحدة 15 · الإتقان

أفضل الممارسات ومنهجية العمل الاحترافية

الفرق بين شخص «يلعب» مع Lovable وشخص يبني به منتجاً حقيقياً ليس الذكاء — بل المنهجية. هذه هي القواعد التي يتبعها المحترفون لتجنّب إهدار الكريدِت والوقت والأعصاب.

القاعدة الذهبية

تعامل مع Lovable كأنه مطوّر بشري ذكيّ لكنه حرفيّ جداً: ينفّذ ما تقوله بدقّة، لا ما يدور في رأسك. وضوحُك = جودة النتيجة.

١. اعمل بخطوات صغيرة (Small Iterations)

أكبر خطأ يقع فيه المبتدئون: طلب عشر ميزات في prompt واحد. النتيجة فوضى يصعب تصحيحها. المحترف يطلب تغييراً واحداً، يختبره، ثم ينتقل للتالي.

الطريقة الخاطئة

«ابنِ لي متجراً كاملاً فيه تسجيل دخول، سلّة، مدفوعات، لوحة تحكم، إشعارات، وتقييمات.» — كلّ شيء دفعة واحدة.

الطريقة الصحيحة

ابدأ بصفحة عرض المنتجات فقط. اختبر. ثم أضف السلّة. اختبر. ثم الدفع. خطوة، اختبار، خطوة.

٢. ثبّت الواجهة قبل أن تلمس الـ Backend

ابنِ كل الصفحات والتصميم والتنقّل أولاً ببيانات وهمية (mock data)، وتأكّد أنّ الشكل يعجبك تماماً. بعد ذلك فقط اربط قاعدة البيانات والحسابات. لماذا؟ لأنّ تغيير التصميم بعد ربط الـ backend أصعب وأكثر كلفة بالكريدِت.

1

الواجهة الثابتة

كل الصفحات + التصميم + التنقّل ببيانات وهمية.

2

المراجعة البصرية

عدّل الألوان والخطوط والمسافات حتى ترضى تماماً.

3

الحسابات وقاعدة البيانات

اربط Supabase: تسجيل الدخول والجداول.

4

المنطق والمدفوعات

الأدوار والصلاحيات ثم Stripe.

5

الأمان ثم النشر

مراجعة RLS والمفاتيح، ثم الدومين.

٣. حدّد المكان والمطلوب وما لا يُلمَس

عند أي تعديل، أخبر Lovable بثلاثة أمور: أين التغيير، ما هو بالضبط، وما الذي يجب ألّا يتغيّر. هذه الجملة الأخيرة تمنع «الكسر الجانبي» حيث يصلح ميزة فيكسر أخرى.

scoped-edit.txt · English
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 على كل الجداول.

ما هو RLS ولماذا هو الأهمّ؟+
RLS (أمان مستوى الصف) قانونٌ في قاعدة البيانات يضمن أن كلّ مستخدم يرى صفوفه فقط. بدونه، قد يصل أيّ مستخدم لبيانات الآخرين عبر تعديل بسيط في الطلب. هذا أكثر ثغرة أمنية شيوعاً في تطبيقات الـ vibe-coding. لا تنشر أبداً قبل تفعيله والتحقّق منه.
قائمة فحص الأمان قبل النشر+
١) RLS مُفعّل على كل الجداول. ٢) لا مفاتيح سرّية (API keys) ظاهرة في كود الواجهة. ٣) الصفحات المحمية ترفض الزوّار غير المسجّلين. ٤) صلاحيات الأدوار صحيحة (المستخدم العادي لا يصل لأدوات المدير). ٥) نماذج الإدخال تتحقّق من البيانات. اطلب من Lovable فحص كلّ بند وإصلاح ما يلزم.

٦. Remix و Revert: شبكتا الأمان

↩️

Revert

كل تعديل يُحفظ كنقطة. إن أفسد تغييرٌ شيئاً، ارجع بنقرة إلى آخر نسخة سليمة. لا تخف من التجربة.

🔄

Remix

إن تشابكت الأمور كثيراً، انسخ المشروع كبداية نظيفة واحتفظ بالأصل. أحياناً البداية الجديدة أسرع من إصلاح فوضى متراكمة.

٧. Meta-prompting: اجعل الذكاء يحسّن طلبك

قبل إرسال prompt مهمّ، اطلب من ChatGPT أو من Chat Mode في Lovable أن «يحسّن ويوضّح هذا الطلب ليفهمه مولّد التطبيقات بدقّة». والعكس (Reverse meta-prompting): بعد حلّ خطأ صعب، اطلب توثيق سببه وحلّه لتضيفه إلى ملف المعرفة فلا يتكرّر.

⚠️
درس @levelsio التحذيري

طوّر مطوّرٌ مشهور تطبيق SaaS بـ ٤٠ ألف سطر عبر الذكاء. عند المراجعة البشرية وجد ٤٧ اقتراحاً: ٣١ صحيحاً، ١٢ تكسر أشياء، و٤ ثغرات أمنية. الخلاصة: الذكاء يسرّع البناء ٪٩٠، لكن المراجعة البشرية قبل النشر تبقى ضرورية — خصوصاً للأمان.

🧠

اختبر فهمك

منهجية الاحتراف.

١. ما الترتيب الصحيح للبناء؟
أ المدفوعات ← الأمان ← التصميم
ب الواجهة الثابتة ← قاعدة البيانات ← المنطق ← الأمان ← النشر
ج كلّ شيء في prompt واحد كبير
٢. عند ظهور خطأ، الأفضل أن…
أ تنتقل لـ Plan Mode وتسأل عن السبب قبل الإصلاح
ب تكرّر «أصلحه» عشر مرّات بسرعة
ج تحذف المشروع وتبدأ من الصفر فوراً
٣. أهمّ خطوة أمنية قبل النشر هي…
أ تغيير الألوان
ب إضافة المزيد من الصفحات
ج تفعيل RLS والتأكّد من عدم ظهور المفاتيح السرّية
الوحدة 16 · المراجع

مكتبة القوالب الجاهزة — انسخ والصق وابنِ

هذه قوالب prompts مجرّبة وجاهزة. كلّها بالإنجليزية لأنّ Lovable يعطي أفضل نتائجه بها. عدّل النصوص بين الأقواس [ ] بما يناسب مشروعك، ثم انسخها مباشرة.

📋
كيف تستخدم القوالب

كل قالب مصمّم ليكون خطوة واحدة. ابدأ بقالب «الأساس» ثم أضف القوالب الأخرى واحداً تلو الآخر — لا تدمجها كلّها في طلب واحد.

القالب ١ — الأساس (ابدأ كل مشروع به)

01-foundation.txt · English
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.

القالب ٢ — إضافة الحسابات وتسجيل الدخول

02-auth.txt · English
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.

القالب ٣ — جدول بيانات + لوحة تحكم

03-crud.txt · English
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.

القالب ٤ — الأدوار والصلاحيات

04-roles.txt · English
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)

05-payments.txt · English
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.

القالب ٦ — إصلاح خطأ (مع لقطة شاشة)

06-debug.txt · English
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.

القالب ٧ — مراجعة الأمان قبل النشر

07-security.txt · English
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.

القالب ٨ — تحسين تجربة المستخدم

08-polish.txt · English
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 في بداية أي مشروع — سيُرسَل تلقائياً مع كل طلب ويجعل النتائج أكثر اتّساقاً.

knowledge.txt · English
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 يعطي أفضل وأدقّ نتائجه بالإنجليزية
ج لأنّ الإنجليزية أقصر دائماً
٢. كيف تستخدم القوالب بشكل صحيح؟
أ واحداً تلو الآخر كخطوات منفصلة
ب ألصقها كلّها في طلب واحد ضخم
ج أحفظها فقط ولا أستخدمها
الوحدة 17 · المراجع

قاموس المصطلحات — كلّ كلمة تقنية بالعربية البسيطة

لن تخاف من أي مصطلح بعد اليوم. هذه كل الكلمات التي ستصادفها في Lovable مشروحة بلغة يفهمها أيّ شخص — بلا خلفية برمجية.

Prompt · برومبت
الأمر النصّي الذي تكتبه لتطلب من الذكاء بناء أو تعديل شيء. كلّما كان أوضح، كانت النتيجة أفضل. هو لغة تواصلك مع المنصّة.
Frontend · الواجهة الأمامية
كل ما يراه المستخدم ويتفاعل معه: الصفحات، الأزرار، الألوان، النماذج. «الوجه» الظاهر من التطبيق.
Backend · الخلفية
المحرّك الخفيّ خلف الكواليس: حفظ البيانات، التحقق من الحسابات، تنفيذ المنطق. المستخدم لا يراه لكنه يشغّل كل شيء.
Database · قاعدة البيانات
المكان المنظّم الذي تُخزَّن فيه معلومات تطبيقك (المستخدمون، الطلبات، المنتجات…) كجداول صفوف وأعمدة. في Lovable تأتي عبر Supabase.
Supabase · سوبابيس
الخدمة التي تمنح تطبيقك خلفيةً كاملة: قاعدة بيانات + حسابات + تخزين ملفات. هي الشريك الأساسي لـ Lovable في كل ما يخصّ الـ backend.
Auth · المصادقة
نظام تسجيل الدخول وإنشاء الحسابات: بريد وكلمة مرور، أو الدخول عبر Google. يتأكّد أنّ كل مستخدم «هو من يدّعي».
RLS · أمان مستوى الصف
قانونٌ في قاعدة البيانات يضمن أن كل مستخدم يرى صفوفه فقط لا صفوف غيره. أهمّ إجراء أمنيّ قبل النشر — لا تتجاهله أبداً.
Stripe · سترايب
خدمة استقبال المدفوعات بالبطاقات: اشتراكات شهرية أو دفعات مرّة واحدة. تأخذ عمولة بسيطة (نحو ٢٫٩٪ + ٣٠ سنتاً لكل عملية).
API · واجهة برمجية
«وصلة» تتيح لتطبيقك التحدّث مع خدمة أخرى (مثل بوّابة الدفع أو خدمة البريد). فكّر بها كمنفذ تتبادل عبره البرامج الطلبات.
API Key · المفتاح السرّي
كلمة سرّ تثبت هويّة تطبيقك أمام خدمة خارجية. يجب ألّا تظهر أبداً في كود الواجهة، وإلّا أمكن لأي شخص إساءة استخدامها.
Deploy · النشر
رفع تطبيقك إلى الإنترنت ليصبح متاحاً للناس عبر رابط. في Lovable يتمّ بنقرة Publish.
Domain · الدومين
عنوان موقعك على الإنترنت (مثل myapp.com). تشتريه سنوياً (نحو ١٢ دولاراً) وتربطه بتطبيقك ليبدو احترافياً.
Credits · الكريدِت
عملة Lovable الداخلية. كل طلب يستهلك كريدِت بحسب حجمه. خطّتك تحدّد كم تملك شهرياً ويومياً. الطلبات الواضحة توفّرها.
Agent Mode · وضع الوكيل
الوضع الافتراضي: ذكاءٌ مستقلّ يقرأ مشروعك، يبحث، يصحّح، ويعدّل عدّة ملفات لتنفيذ طلبك كاملاً. الأقوى لكنه يستهلك كريدِت أكثر.
Chat / Plan Mode · وضع التخطيط
وضعٌ يفكّر ويخطّط ويشرح ويصحّح المنطق دون لمس الكود. مثاليّ لفهم خطأ أو التخطيط قبل التنفيذ — ويستهلك كريدِت أقلّ.
Visual Edits · التعديل البصري
أداة تنقر بها على أي عنصر (نصّ، زر، لون) لتعدّله مباشرة دون كتابة prompt — تماماً كمحرّر مستندات. توفّر الكريدِت للتعديلات الصغيرة.
Knowledge File · ملف المعرفة
«عقل» مشروعك: نصٌّ ثابت يصف تطبيقك وقواعده، يُرسَل تلقائياً مع كل طلب فيحافظ على اتّساق النتائج.
Component · المكوّن
قطعة واجهة قابلة لإعادة الاستخدام (زرّ، بطاقة، شريط تنقّل). التفكير «بالمكوّنات» يجعل تطبيقك منظّماً وسهل التعديل.
Repo / GitHub · المستودع
GitHub خزانةٌ تُحفظ فيها نسخ كود مشروعك. ربط Lovable به يمنحك ملكية الكود وحرّية نقله لأي أداة أخرى لاحقاً.
MVP · المنتج الأوّلي
أبسط نسخة قابلة للاستخدام من فكرتك، فيها الميزة الأساسية فقط. تطلقها بسرعة لتختبر السوق قبل التوسّع.
Remix · النسخ النظيف
نسخ مشروعك كبداية جديدة مع الاحتفاظ بالأصل. مفيد عند الرغبة في إعادة الانطلاق دون فقدان عملك السابق.
Revert · التراجع
العودة بنقرة إلى نسخة سابقة سليمة من مشروعك إن أفسد تعديلٌ ما شيئاً. شبكة أمانك التي تشجّعك على التجربة.
Responsive · متجاوب
تصميمٌ يتكيّف تلقائياً مع كل الأحجام: الجوال، اللوحي، الحاسوب. ضروريّ لأنّ معظم الزوّار من الهواتف.
Edge Function · دالة طرفية
قطعة منطق صغيرة تعمل في الخلفية (عبر Supabase) لتنفيذ مهامّ حسّاسة بأمان، مثل معالجة دفعة أو إرسال بريد.
💡
نصيحة

لا تحفظ هذه المصطلحات عن ظهر قلب. عُد إليها وقت الحاجة فقط. الفهم يأتي بالممارسة لا بالحفظ.

الوحدة 18 · الختام

الخطوة التالية + شهادتك

أنهيت رحلةً نقلتك من «لا أعرف ما هو Lovable» إلى «أستطيع بناء تطبيق SaaS متكامل ونشره». إليك ما تفعله الآن لتحوّل المعرفة إلى نتيجة.

خطّتك لأوّل ٧ أيام

1

اليوم ١ — افتح حساباً وابنِ صفحة

سجّل في lovable.dev على الخطّة المجانية. استخدم القالب ١ وابنِ صفحة هبوط لفكرة بسيطة. اختبر التعديل البصري.

2

اليوم ٢–٣ — اكتب ملف المعرفة وثبّت الواجهة

الصق قالب الـ Knowledge وعدّله. ابنِ كل صفحات تطبيقك ببيانات وهمية حتى يرضيك الشكل.

4

اليوم ٤–٥ — اربط الحسابات وقاعدة البيانات

أضف Supabase: تسجيل الدخول وجدول بيانات واحد مع لوحة تحكم. فعّل RLS.

6

اليوم ٦ — المراجعة والأمان

شغّل قالب مراجعة الأمان. أصلح كل ملاحظة. اطلب صقل تجربة المستخدم.

7

اليوم ٧ — انشر

اضغط Publish. شارك الرابط مع ٣ أشخاص واطلب رأيهم. هذه أوّل دورة تعلّم حقيقية.

مصادر تتابع بها التعلّم

📚

التوثيق الرسمي

docs.lovable.dev — دليل المنصّة الكامل وأحدث الميزات أوّلاً بأوّل.

🎬

قناة Lovable

دروس فيديو قصيرة وأمثلة بناء حيّة من الفريق والمجتمع.

🌐

مجتمع Lovable

منتدى ومجموعات يتبادل فيها البناة القوالب وحلول المشاكل الشائعة.

🔁

ابنِ وكرّر

أفضل مصدر هو يداك. كل تطبيق تبنيه يضاعف مهارتك أضعافاً.

🚀
الفكرة الأخيرة

قبل عامين كان بناء هذا يتطلّب فريقاً وآلاف الدولارات وأشهراً. اليوم تملك أنت — بهذه المعرفة — القدرة على تحويل فكرة إلى منتج حيّ في أيّام. الفارق الوحيد بينك وبين من أطلق مشروعه: أنّه بدأ. ابدأ اليوم.

شهادة إتمام الدورة

أكمل كل الدروس (وضع علامة «أنهيت الدرس» في كلٍّ منها) ليصل تقدّمك إلى ١٠٠٪ وتظهر شهادتك تلقائياً هنا.

🔒
الشهادة مقفلة

تقدّمك الحالي . أكمل بقية الدروس لفتحها.

🎓
شكراً لإكمالك الرحلة

الآن دورك. افتح Lovable، واكتب أوّل prompt، وحوّل فكرتك إلى واقع. بالتوفيق!

Last updated: June 2026
Interactive course · 19 lessons · For non-technical people

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.

Millionsusers worldwide
Full-stackfrontend + backend in one
Minutesto ship a prototype
$0to start for free
🎥Video lessonMetics Media (Arabic)
Tutorial video
A complete beginner intro to "vibe coding" — building with AI from idea to app (the foundation of this course). Arabic audio. · Watch on YouTube ↗

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.
💎
Why is this course worth many times its price?

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

1

Follow in order

Modules build on each other. Don't jump to payments before you master prompts.

2

Apply immediately

Open Lovable in another tab and apply each template as you read it. Learn by doing, not just watching.

3

Take the quizzes

Each module ends with a short quiz that locks in the idea. Answer before moving on.

4

Mark "complete"

Click "I finished this module" so your progress saves automatically and you resume where you left off.

💾
Your progress saves automatically

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.

Module 01 · Fundamentals

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.

🎥Video lessonChristian Peverelli
Tutorial video
Build a Lovable app from scratch — mirrors this module's fundamentals · Watch on YouTube ↗

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:

AspectTraditional No-CodeLovable
OutputClosed componentsReal code you own
CustomizationLimited to what the platform allowsUnlimited, via code
Moving laterNearly impossibleExport to GitHub freely
How you workDrag and dropA conversation in plain language

When to use Lovable… and when not

Ideal for

Landing pages, prototypes (MVPs), internal tools, simple-to-medium SaaS apps, client portals, dashboards, and testing ideas fast.

⚠️
Needs human oversight (or stronger tools) for

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.

1. What sets Lovable apart from traditional No-Code tools?
A It's faster at drag-and-drop
B It produces real code you own and can export
C It's completely free with no limits
2. What does "full-stack" mean in the context of Lovable?
A It builds only the frontend
B It builds only the database
C It builds the frontend, backend, and database together
Module 02 · Fundamentals

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:

1

You describe (Prompt)

You write what you want in words. Example: "Add a contact page with a form for name, email, and message."

2

It plans and builds

The AI analyzes your request, drafts a conceptual plan, then writes/edits the necessary files.

3

You preview

The result appears instantly in a live preview on the side of the screen so you can try it yourself.

4

You iterate

You request a small change, preview, and so on… each edit a small step toward your final product.

🔑
The golden rule

"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.

🧩
A simplified technical note

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.

1. What's the golden rule when building in Lovable?
A Ask for all features at once to save time
B One change then check, in small testable steps
C Never preview until everything is done
2. Which mode do you use for "thinking and planning" without editing code?
A Plan / Chat
B Agent
C Visual Edits
Module 03 · Fundamentals

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

🔁 The Revert / Restore button+
The most important button in your life! It returns your project to a previous stable version if an edit breaks something. Think of it as a "time machine." Every version is saved, so experiment boldly without fear.
🖱️ The Select feature+
You click a specific element in the preview (button, heading, image) to select it, then request a precise edit without the AI getting distracted by the rest of the page.
🎨 Themes+
A central panel that controls your app's visual identity: colors, fonts, spacing — all from one place with instant preview. Define your identity once and it spreads across every page automatically. A huge time-saver on real projects.
📤 Publish+
One button that pushes your app to the internet on a subdomain (like yourapp.lovable.app), or on your own domain on paid plans. We'll dedicate a whole module to it later.
🔗 Integrations+
From here you connect Supabase (database & accounts), Stripe (payments), GitHub (code export), and other services. Each connection takes just a few clicks.
🧪
The smart beginner's tip

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?

1. An edit broke your app. What's the fastest fix?
A Start a new project from scratch
B Edit the code manually
C Use Revert to return to a stable version
2. What's the best way to start a new project as a beginner?
A Ask for all features in the first prompt
B Start empty and build gradually
C Copy a ready-made project and edit it
Module 04 · Setup & Cost

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.

🆓
Start free — paying is an "optional upgrade" later

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.

ℹ️
Disclaimer

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.
⚠️
For testing, not production

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.
💡
The balance point

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.
🏢
For teams and companies

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:

ItemApprox. costWhen you need it
Supabase Pro (production database)~$25/moWhen you exceed the free tier — pricing
Custom domain (.com)~$12/yrFor a professional look at launch
Email service (Resend / SendGrid)$0–20/moFor verification emails and notifications
Stripe fees~2.9% + $0.30When receiving payments (varies by country — stripe.com)
📊
The big picture

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.

🧮 True-cost calculator

Pick your plan and add what you need, and we'll estimate your monthly budget. (Rough estimates only — prices change; check the official pages.)

Production database +$25 Custom domain +$1 Email service +$20
🧠

Test your understanding

Did you grasp the platform's economics?

1. Why is writing precise prompts a way to save money?
A Because it raises the plan price
B Because it reduces failed attempts that consume credits
C It has nothing to do with money
2. Which of the following is a common "hidden" cost not included in a Lovable plan?
A The chat panel
B The Revert button
C Stripe fees on every payment
Module 05 · Mastery · The most important module

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.

🎥Video lessonChristian Peverelli
Tutorial video
Go from beginner to pro with Lovable + Supabase — great prompting & build practice · Watch on YouTube ↗
🧠
The core principle

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:

starter-prompt.txt · English
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.
Notice the smart details

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

  1. Think in components: ask for one "product card" done perfectly, then ask to repeat it — instead of describing each card separately.
  2. Use real content: realistic names, prices, and text make the result closer to reality and surface design problems early.
  3. Repeat important instructions: the AI's memory is limited. Restate the key constraint in each prompt ("Remember: don't change the header design").
  4. Iterate small: "one change then check" — don't request five features together.
  5. 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:

meta-prompt.txt · English
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:

reverse-meta.txt · English
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.
😤
A funny but real trick

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.

⚙️ Professional prompt generator

Fill in the fields and click the button to build a structured English prompt ready to paste into Lovable.

Minimal & modern Playful & colorful Corporate & professional Luxury & elegant
🧠

Test your understanding

The rule of three and more.

1. What are the three elements of an effective request?
A Long, formal, in English
B Fast, vague, general
C Where (the place), what (the behavior), and what-not-to-touch (guardrails)
2. What is "Meta-Prompting"?
A Using an AI to improve your prompt before pasting it into Lovable
B Writing the prompt in capital letters
C Deleting all details from the prompt
Module 06 · Mastery

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.

🧠
An analogy

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

knowledge.md · English
# 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
🪄
The auto-generate trick

Have 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.

1. When is the Knowledge file sent to the AI?
A Once, when the project is created
B Automatically with every request
C Only at publish time
2. Which of the following belongs in the Knowledge file?
A Your credit card number
B Your Stripe account password
C The users, their roles, and the rules not to break
Module 07 · Mastery

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.
🛡️
A golden rule

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.
Fastest for details

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

TaskBest mode
Planning and thinking through a featurePlan
Diagnosing an error before fixing itPlan
Building a feature or implementing a changeAgent
Quickly editing a color/text/spacingVisual Edits
🧠

Test your understanding

The right tool for each task.

1. You want to diagnose the cause of an error without risking any change. Which mode?
A Plan / Chat
B Agent
C Publish directly
2. You want to quickly enlarge a heading and change its color. Best option?
A Write a detailed prompt
B Rebuild the page
C Visual Edits — direct clicking
Module 08 · Full Build

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.

🎥Video lessonSupabase (official)
Tutorial video
Official walkthrough: wiring a real backend (database & data) into Lovable · Watch on YouTube ↗

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.

⚠️
Supabase integration is mandatory for the backend

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

1

From the Integrations menu

Open Integrations in your project and pick Supabase, then connect your account (or create one for free).

2

Request the feature in words

Example: "Add email/password login, and after login redirect the user to /dashboard."

3

Let Lovable build the tables

It will propose the data structure (tables and columns) and implement it. Review and confirm.

4

Test

Sign up with a test account and confirm data is saved and roles work.

A prompt template for adding accounts

auth-prompt.txt · English
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.
🔒
Security first

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.

1. What's the role of the database in your app?
A Designing the colors
B Storing data permanently (the permanent memory)
C Publishing the app to the internet
2. Which service does Lovable use for backend and authentication?
A Supabase
B Figma
C Photoshop
Module 09 · Full Build

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.

🎥Video lessonSupabase (official)
Tutorial video
Build a full SaaS with Lovable + Supabase + Stripe payments — the heart of this module · Watch on YouTube ↗

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 fees (not Lovable fees)

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

1

Create a Stripe account

Free, and you get "API keys" from the Stripe dashboard.

2

Connect it via Integrations

Paste the keys into the integration settings inside Lovable.

3

Request the pricing page in words

Describe the plans and prices, and let Lovable build the buttons and payment wiring.

4

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

stripe-prompt.txt · English
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.
🧾
Before accepting real payments

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.

1. Roughly how much does Stripe take per transaction?
A A flat 10%
B 2.9% + $0.30
C Completely free
2. How do you test payments safely before launch?
A With your real money
B It can't be tested
C Via test mode and Stripe's test cards
Module 10 · Full Build

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 subdomain is for testing, not a serious launch

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

1

Buy a domain

From Namecheap, GoDaddy, or others (~$12/yr for a .com). The domain isn't included in your Lovable subscription.

2

Open domain settings in Lovable

Available on paid plans (Pro and up) — with unlimited domains.

3

Set DNS records

You copy the values Lovable gives you and put them in your domain panel. A simple, documented step.

4

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.

security-prompt.txt · English
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?

1. What's the difference between the lovable.app link and a custom domain?
A No difference
B The subdomain is for testing; a custom domain is more professional for launch
C A custom domain is always free
2. What should you confirm security-wise before publishing?
A Enable RLS and don't expose secret keys
B Just change the button color
C Delete the pricing page
Module 11 · Full Build

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.
⚠️
An important note

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.

🚀
The smart growth strategy

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?

1. What's the big benefit of exporting code to GitHub?
A It makes the app faster
B It doubles the number of users
C You own your code and can migrate or collaborate later
2. Can you import an existing GitHub repo to edit inside Lovable?
A Yes, easily
B No — Lovable builds new apps, and the direction is toward GitHub
C Only on the free plan
Module 12 · Full Build

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

1

Retrace your steps

Review what you originally asked. Was your request clear? Where did it start to drift?

2

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."

3

Use images

Attach a screenshot of the current result vs. the desired one. The visual difference clarifies the problem instantly.

4

Diagnose in Plan mode

Ask "why is this happening?" in Plan before any edit, to understand the root cause.

5

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

debug-prompt.txt · English
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.

🧘
A healthy mindset

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.

1. Your app runs with no error message but the result is wrong. This is called?
A An explicit error
B Unexpected behavior
C An internet outage
2. What is the Remix strategy?
A Deleting the account
B Canceling the subscription
C Starting a clean copy with better prompts, using the old one as a reference
Module 13 · In Practice

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.

ℹ️
Note

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 impact

Shalini 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 · persistence
Severalapps shipped

Tomas, 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 · productivity
Multipliedproductivity

An 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 market
Weeksinstead of months

A 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 limits

A 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:

real-world-prompt.txt · English
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.
💡
The distilled rule

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.

Module 14 · In Practice · The big project

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.

🎥Video lessonDecoding Digital
Tutorial video
Build a full-stack app end-to-end — a practical capstone for everything you learned · Watch on YouTube ↗
🎯
The idea

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:

step-1.txt · English
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

step-2.txt · English
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

step-3.txt · English
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

step-4.txt · English
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

step-5.txt · English
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)

step-6.txt · English
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

step-7.txt · English
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.
🏆
Well done!

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.

1. Why did we start with the landing page only, before payments?
A Because the landing page is the most profitable
B To build in small testable steps and set the foundation first
C Because payments aren't important
2. When did we run the security review?
A Before building anything
B We never ran it
C After the features were complete and right before publishing
Module 15 · Mastery

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.

The golden rule

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.

1

Static frontend

All pages + design + navigation with mock data.

2

Visual review

Tune colors, fonts, and spacing until you're fully satisfied.

3

Accounts and database

Connect Supabase: login and tables.

4

Logic and payments

Roles and permissions, then Stripe.

5

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.

scoped-edit.txt · English
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.

💡
The "I am frustrated" trick

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.

What is RLS and why is it the most important?+
RLS (Row-Level Security) is a rule in the database that ensures each user sees only their own rows. Without it, any user could reach others' data with a small tweak to the request. This is the most common security flaw in vibe-coding apps. Never publish before enabling and verifying it.
A pre-publish security checklist+
1) RLS is enabled on all tables. 2) No secret API keys are exposed in the frontend code. 3) Protected pages reject logged-out visitors. 4) Role permissions are correct (a regular user can't reach admin tools). 5) Input forms validate the data. Ask Lovable to check each item and fix what's needed.

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.

⚠️
The @levelsio cautionary lesson

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.

1. What's the correct build order?
A Payments → security → design
B Static frontend → database → logic → security → publish
C Everything in one big prompt
2. When an error appears, it's best to…
A Switch to Plan mode and ask for the cause before fixing
B Repeat "fix it" ten times quickly
C Delete the project and start over immediately
3. The most important security step before publishing is…
A Changing the colors
B Adding more pages
C Enabling RLS and confirming no secret keys are exposed
Module 16 · References

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.

📋
How to use the templates

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)

01-foundation.txt · English
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

02-auth.txt · English
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

03-crud.txt · English
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

04-roles.txt · English
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)

05-payments.txt · English
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)

06-debug.txt · English
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

07-security.txt · English
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

08-polish.txt · English
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.
🎁
A ready-made "Knowledge file" template

Paste this into the Knowledge settings at the start of any project — it gets sent automatically with every request and makes results more consistent.

knowledge.txt · English
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.

1. Why are the templates in English?
A Because Lovable doesn't understand other languages at all
B Because Lovable gives its best, most accurate results in English
C Because English is always shorter
2. How do you use the templates correctly?
A One after another, as separate steps
B Paste them all in one giant request
C Just save them and never use them
Module 17 · References

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.

Prompt
The text command you write to ask the AI to build or edit something. The clearer it is, the better the result. It's your language for talking to the platform.
Frontend
Everything the user sees and interacts with: pages, buttons, colors, forms. The visible "face" of the app.
Backend
The hidden engine behind the scenes: storing data, verifying accounts, running logic. The user doesn't see it, but it powers everything.
Database
The organized place where your app's information is stored (users, orders, products…) as tables of rows and columns. In Lovable it comes via Supabase.
Supabase
The service that gives your app a full backend: database + accounts + file storage. It's Lovable's core partner for everything backend-related.
Auth
The login and account-creation system: email and password, or sign-in via Google. It confirms each user "is who they claim to be."
RLS · Row-Level Security
A rule in the database ensuring each user sees only their own rows, not others'. The most important security step before publishing — never skip it.
Stripe
A service for receiving card payments: monthly subscriptions or one-time charges. It takes a small fee (about 2.9% + 30¢ per transaction).
API
A "connector" that lets your app talk to another service (like a payment gateway or an email service). Think of it as a port through which programs exchange requests.
API Key
A secret password that proves your app's identity to an external service. It must never appear in frontend code, or anyone could misuse it.
Deploy
Pushing your app to the internet so people can reach it via a link. In Lovable it's done with one click of Publish.
Domain
Your website's address on the internet (like myapp.com). You buy it yearly (about $12) and connect it to your app to look professional.
Credits
Lovable's internal currency. Each request consumes credits based on its size. Your plan sets how many you get monthly and daily. Clear requests save them.
Agent Mode
The default mode: an autonomous AI that reads your project, searches, debugs, and edits several files to fully execute your request. The most powerful, but it consumes more credits.
Chat / Plan Mode
A mode that thinks, plans, explains, and debugs logic without touching the code. Ideal for understanding an error or planning before executing — and it consumes fewer credits.
Visual Edits
A tool to click any element (text, button, color) and edit it directly without writing a prompt — just like a document editor. Saves credits for small edits.
Knowledge File
Your project's "mind": a fixed text describing your app and its rules, sent automatically with every request to keep results consistent.
Component
A reusable piece of interface (a button, a card, a navbar). Thinking "in components" keeps your app organized and easy to edit.
Repo / GitHub
GitHub is a vault that stores copies of your project's code. Connecting Lovable to it gives you code ownership and the freedom to move it to any other tool later.
MVP
The simplest usable version of your idea, with only the core feature. You launch it fast to test the market before scaling.
Remix
Copying your project as a fresh start while keeping the original. Useful when you want to restart without losing your earlier work.
Revert
Returning in one click to a previous healthy version of your project if an edit breaks something. Your safety net that encourages experimenting.
Responsive
A design that automatically adapts to every size: phone, tablet, desktop. Essential because most visitors are on phones.
Edge Function
A small piece of logic that runs in the background (via Supabase) to perform sensitive tasks securely, like processing a payment or sending an email.
💡
A tip

Don't memorize these terms by heart. Come back to them only when you need them. Understanding comes from practice, not memorization.

Module 18 · Closing

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

1

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.

2

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.

4

Days 4–5 — Connect accounts and the database

Add Supabase: login and one data table with a dashboard. Enable RLS.

6

Day 6 — Review and security

Run the security review template. Fix every issue. Ask for a UX polish.

7

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.

🚀
One last thought

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.

🔒
Certificate locked

Your current progress is 0%. Complete the rest of the lessons to unlock it.

🎓
Thank you for completing the journey

Now it's your turn. Open Lovable, write your first prompt, and turn your idea into reality. Good luck!

🎓اسأل معلّم الدورةAsk the tutor