App COMPLETO com Login, Banco e Deploy em 20 Min (Antigravity + Firebase MCP)

App COMPLETO com Login, Banco e Deploy em 20 Min (Antigravity + Firebase MCP)

Creating a Full Stack Project on Google Infrastructure

Introduction to the Project

  • The video introduces a full stack project using Google's infrastructure, emphasizing that it can be done for free. The application will include a database, authentication, and deployment.
  • Presenter Mateus Batista shares his experience of over 10 years in technology and aims to provide valuable insights into effective tools for work and life.

Upcoming Course Announcement

  • Mateus announces the launch of "Vibe Coding" on March 9th, encouraging viewers to sign up for notifications and special discounts through a provided link.

Overview of Development Process

  • A flowchart is presented to outline the development process step-by-step. It begins with writing the project using prompts in Antigravity IDE.
  • The video mentions that Google offers a free IDE integrated with AI, allowing users to create projects using models like Cloud Opus or Gemnight 3 Pro.

Firebase Integration

  • Viewers are directed to previous videos that cover foundational knowledge about Antigravity and project creation methods.
  • The presenter explains how Firebase simplifies manual connections through its MCP (Managed Cloud Platform), which allows one-click setup without additional installations.

Setting Up Firebase

  • Firebase serves as both a cloud database and hosting service; the Spark plan is highlighted as generous since it costs $0.
  • To start development, viewers need to install Antigravity and certain Firebase dependencies via npm commands.

Logging into Firebase

  • Users must create an account at firebase.google.com and log in using firebase login command after installation.
  • After logging in successfully, users can list their projects with firebase projects list, confirming connection integrity.

Project Creation: Link Shortener

  • The project being developed is identified as a link shortener. Users will connect via MCP after establishing their Firebase account.
  • Emphasis is placed on structuring the database first before proceeding with other aspects of the project development.

Final Setup Steps

  • Once connected correctly, users can refresh their tools within Antigravity to ensure proper integration with Firebase before starting actual coding tasks.

Creating a Firebase Database for a Link Shortener App

Setting Up Firebase

  • The prompt is designed to create a database using Firebase MCP, emphasizing the importance of explicit references over implicit ones.
  • A new project named "links" is created in Firebase, and the Cloud Firestore is installed with the closest region selected to minimize lag.
  • Firebase Authentication is activated for email, password, and Google sign-in options; this setup serves as the foundation for the app.

Project Overview

  • The app will feature a sleek login screen in Portuguese, allowing users to log in via email/password or Google. Users without an account can create one directly.
  • The main page includes a large field for pasting URLs and a button to shorten them. It generates short links saved in Firestore and displays them in real-time.
  • The app design will be modern and responsive with dark themes, featuring real-time link updates and user interaction counters.

Development Process

  • Utilizing Gemini 3 Pro model due to its superior performance with Google services; this choice aims at efficient project completion.
  • After initial setup, prompts will require confirmations for dependency installations and folder creations before allowing automated processes.

Debugging & Testing

  • Upon completing the app execution, users can access Firestore through console options to verify data necessary for functionality.
  • A guide on prompt writing from basic to advanced levels is provided; it aids users in crafting better prompts across various AI platforms.

Security Configuration

  • Important security rules are highlighted: ensuring authenticated users have read/write access while public access is allowed only for link collections.
  • Users are advised to configure these settings manually if needed; understanding Firebase's complex rules enhances application functionality.

Error Handling

  • During testing, errors may occur (e.g., during account creation), necessitating debugging loops where prompts help identify issues within configurations.
  • If errors persist after attempts at resolution, manual adjustments in Firebase authentication settings may be required.

Setting Up Authentication and Database Connection

Configuring Authentication

  • The speaker discusses the necessity of setting up authentication for the project, emphasizing that it is a crucial step to ensure functionality.
  • It is noted that the current system (MCP) does not yet handle this process automatically but may evolve to do so in future updates.

Database Configuration

  • The speaker requests the creation of CRUD operations (Create, Read, Update, Delete) for managing shortened links in Firebase.
  • After establishing a connection with Firebase, the application successfully retrieves and displays saved links.

Managing Links and Database Verification

Link Management Features

  • Users can now delete existing links and create new ones; the updated list reflects these changes immediately.
  • The speaker demonstrates how to view stored links in Firebase's Firestore database, confirming successful data saving.

Preparing for Deployment

  • The next step involves deploying the project online. Although this demonstration represents a simplified version of the project, it highlights core functionalities.

Planning Complex Projects

Importance of Project Planning

  • A link to a video resource on planning complex projects is provided, suggesting that proper preparation precedes coding execution.

Deploying to Firebase Hosting

Deployment Process

  • The deployment process is described as straightforward; using Firebase services allows users to build and deploy their applications easily.
  • Upon completion of deployment, users receive a public URL for accessing their hosted app.

Testing Application Functionality

User Interaction with App

  • The speaker tests user registration via email authentication and demonstrates adding URLs through the shortening service.

Enhancing User Experience

  • Discussion includes potential improvements such as allowing users to edit shortened links for better usability.

Implementing Edit Functionality

Adding Edit Capabilities

  • A request is made to implement an editing feature that allows users to modify both original and shortened URLs.

Validation Checks

  • During testing, validation checks prevent duplicate entries when attempting to edit existing links. This ensures data integrity within the application.

Application Update Process

Updating the Project in Firebase

  • The speaker discusses the process of updating a project on Firebase to incorporate new features, emphasizing that the build has already been generated automatically.
  • After initiating the update, users are instructed to wait for the project to complete its update cycle, which is essential for finalizing application readiness.

Finalizing Application Features

  • The speaker demonstrates that after reloading the project, new functionalities such as editing can be utilized effectively, showcasing successful integration with the database.
  • The discussion highlights using Antigrift and Google Firebase for creating a full-stack application with database management and authentication capabilities.

Upcoming Educational Opportunities

  • An announcement is made regarding an upcoming course titled "Vibe Code," which focuses on AI-assisted programming. Viewers are encouraged to download an e-book for early access discounts.
  • The speaker invites viewers to engage by leaving comments or questions about the video content and emphasizes the importance of likes and subscriptions for continued quality content delivery.
Video description

App completo com login, banco de dados e deploy em 20 minutos. Tudo com Antigravity + Firebase MCP. Do zero ao deploy, de graça, sem escrever uma linha de código manualmente. ❇️ Garanta seu desconto na Formação Vibe Coding: https://app.horadecodar.com.br/lp/esquenta-vibe-coding 🟪 Hospedagem para n8n que eu indico: https://hostinger.com.br/matheusbattisti (use o cupom HORADECODAR para ter +10% de desconto) 📘 Guia Engenharia de Prompt: https://app.horadecodar.com.br/ebookpages/guia-engenharia-de-prompt Nesse vídeo eu crio um encurtador de links fullstack usando o Google Antigravity com o Firebase MCP Server. O diferencial é que o MCP não só escreve o código, ele cria o projeto no Firebase, configura o Firestore, ativa a autenticação e faz o deploy direto pela conversa. Tudo sem abrir o console do Firebase uma única vez. Começo criando o projeto do zero no Antigravity. Dou o prompt pedindo um encurtador de links com autenticação Google, dashboard pra gerenciar links, contador de cliques e design moderno. O Antigravity gera o app inteiro em React com Vite e Tailwind CSS. A parte mais impressionante é o Firebase MCP em ação. Pelo chat, o agente cria o projeto no Firebase, configura o Firestore como banco de dados, ativa o Firebase Auth com Google Sign-In e configura as regras de segurança. Tudo via conversa. Você vê as tabelas sendo criadas, as regras sendo escritas, o auth sendo ativado, sem tocar em nenhum painel. O app funciona assim: o usuário faz login com Google, cola uma URL longa, gera um link curto, e tem um dashboard mostrando todos os links criados com contador de cliques em tempo real. Cada clique é registrado no Firestore e o redirect acontece instantaneamente. Depois de tudo funcionando localmente, faço o deploy usando Firebase Hosting direto pelo Antigravity. O app vai pro ar em produção com HTTPS, domínio do Firebase, tudo configurado. De graça. Mostro também os ajustes que fiz ao longo do processo: correções de layout, melhorias no responsivo, tratamento de erros e loading states. O workflow real, sem cortes fake. Quando dá erro, mostro como resolvo. O resultado é um app completo, funcional, em produção, com login, banco de dados em tempo real, analytics de cliques e deploy gratuito. Em 20 minutos. Com IA fazendo o trabalho pesado. Se você quer aprender a criar aplicações completas assim, do zero ao deploy usando IA, dá uma olhada na Formação Vibe Coding. Link aqui embaixo. Entre no nosso servidor de Discord e me siga nas redes: 🟣 Discord Hora de Codar: https://discord.gg/Veq4mvsWwk 🔴 Instagram: https://www.instagram.com/horadecodar/ 🔷 Telegram: https://t.me/horadecodar TIMESTAMPS 00:00 Sobre o projeto do Antigravity com Firebase 01:30 Como funciona o projeto que iremos criar (Antigravity + Firebase MCP) 03:05 Instalando as dependências do Firebase com Antigravity 04:45 Integrando o MCP do Firebase no Antigravity 05:58 Iniciando o projeto no Antigravity 09:10 Verificando dados do projeto no Firebase 10:45 Testando o projeto que criamos com Antigravity e Firebase 12:43 Adicionando funcionalidades ao projeto 15:08 Fazendo o deploy na Firebase Hosting 15:50 Testando o projeto após deploy 17:01 Como atualizar o projeto no Firebase 19:00 Conclusão sobre projeto de Antigravity + Firebase