Войти
  • 1409Просмотров
  • 3 месяца назадОпубликованоMohammad Parvez Islam

How to Host Your Lovable Project on cPanel with a Custom Domain

How I Built and Deployed My Lovable Website with Supabase PostgreSQL Database When I first started working on this project, my goal was simple: build a modern website using Lovable AI Website Builder, test it locally with VS Code, configure it with Supabase PostgreSQL Database, and finally host it live on a custom domain via cPanel. In this detailed guide, I’ll explain step by step how I did everything, from installation, build, and deployment to integrating Supabase for database and authentication. This tutorial will be helpful for anyone looking for Lovable website tutorials, Supabase tutorials, hosting guidance, or full-stack development tips. Step 1: Setting Up Locally with VS Code I started by downloading the project files from GitHub (fill git) and imported them into VS Code. To make the project live locally, I used the following commands: npm install npm run dev The first command installed all the dependencies, while the second command started a local development server. This allowed me to preview my Lovable website in real time on localhost. Once I was satisfied with the design and features, I generated the production build using: npm run build This created a dist folder, which contained all the optimized files ready to be deployed on any hosting server. Step 2: Supabase PostgreSQL Database For the backend, I chose Supabase, a powerful open-source alternative to Firebase. Supabase uses PostgreSQL as its core database and provides authentication, real-time APIs, and storage options. Why Supabase? Free tier available PostgreSQL-based (robust + scalable) Supports authentication (Google Auth, Email Auth, Flutter integration, etc.) Perfect for React, , and Flutter apps Some of the key use cases where Supabase helped me: Supabase Authentication React → User login and signup directly from React Supabase Google Auth → Social login integration Supabase Flutter Authentication → Mobile app authentication Supabase Database Setup → Easy schema migration and real-time data updates I also tested Supabase vs Firebase, and for my project, Supabase was a better fit because of its PostgreSQL foundation and open-source flexibility. Step 3: Deploying on cPanel with a Custom Domain After building the dist folder, I logged into my cPanel. From there: I uploaded the dist files to the public_html folder. Connected my custom domain. Verified the website was live successfully. This process made my Lovable AI website accessible worldwide using my domain. Why Lovable AI Website Builder? Lovable is an AI-powered website builder that helps developers and non-developers quickly create responsive websites. With Lovable, you can: Generate website layouts in minutes Get AI-assisted code suggestions Build professional websites without deep coding knowledge Some popular keywords related to this topic are: Lovable AI Tutorial Lovable Website Builder Lovable Website Publish Lovable Website to WordPress Lovable Website Hosting on Hostinger AI Website Design Generator This project was a mix of both AI-powered design and manual customization using VS Code. Contact Me for Collaboration If you’re working on a similar project, need help with Supabase integration, Lovable website design, or custom deployment solutions, feel free to connect with me: WhatsApp: +8801868117428 Email: contactparvez994@ I’d love to collaborate on interesting projects and provide assistance with web design, SEO, or hosting solutions. Hashtags: #supabase #supabasetutorial #supabaseauth #supabaseflutter #supabasevfirebase #lovable #lovableai #lovabletutorial #aiwebsitebuilder #aiwebdesign #websitedeployment #websitehosting #postgresql #cPanelHosting