How to Deploy Angular Application to Firebase using GitHub ? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Many of us unable to showcase our small-scale or personal projects over the web. Since hosting these projects are a bit difficult and also costs a few bucks sometimes. In this article, we will show you how to deploy your Angular application at no cost without buying any domain or hosting provider. Also, tired of deploying your application every iteration? Let's also set up automatic builds and deploys using GitHub. Initialize Git and push the project to the GitHub repositoryTo configure automated builds and deployments to Firebase, the project must first be pushed to a GitHub repository. Open your project in Visual Studio Code.Open Source control Menu from the sidebar or simply use this shortcut ( press Ctrl+Shift+G) to open.Click on the Publish to GitHub button as shown below image.Publish to GitHubEnter the Repository Name as you desired and select the type of repository public or private.Wait for VS Code to publish your project to GitHub.Bundle Angular App for ProductionBy default, all angular projects are set for development so let's build our project and generate our dist file. Run the below command in your terminal of the project folder.ng build --prodNow after some time, the terminal generates a dist folder that is used for production and deploying.Download Firebase and setup for deploymentThe Firebase Command Line Interface (CLI) Tools can be used to test, manage, and deploy your Firebase project from the command line. To download and install the Firebase CLI run the following command with the administrator right:npm install -g firebase-toolsNow you're supposed to login into your firebase with your google account using the following command in your project terminal:firebase loginCreate a Firebase project for deploymentOpen the firebase website and go to your console by logging in through the link https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fconsole.firebase.google.com%2F&followup=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fconsole.firebase.google.com%2F&ifkv=AdBytiN5siwhIM0APP0Z8WGgHkhMahH0ctK5LhEaXB8yq03y0MyZ71wG1TR1uMWDrpfcjG7k2eaSJg&osid=1&passive=1209600&flowName=WebLiteSignIn&flowEntry=ServiceLogin&dsh=S1094424205%3A1753258324288677After logging in, click on the "Add Project" button, then enter your project name and click on the "Create Project" button to create your Firebase project.Now it's time for initializing firebase in your project using the following command in your project terminal.firebase initFirebase provides various services like Database, Firestore, Functions, Hosting, Storage. Scroll down and select Hosting by pressing the space key to select and then press the Enter button to proceed further.After pressing enter, now the terminal asks to choose a project. Select the option "Use an existing project" and choose your project name of which you had created earlier pressing the enter key.Now the terminal asks you to choose your public directory that contains Hosting assets to be uploaded with firebase deploy.Enter the path of your dist folder which you had generated earlier which contains angular builds. In my case, it is dist/calc-angularNow select Yes for the option Set up automatic builds and deploys with GitHub? Enter your GitHub user name and repository name in the format username/repository for the option "For which GitHub repository would you like to set up a GitHub workflow?"For all other options just enter Yes or press enter key as you desired. Once Firebase initialization is completed, just enter the following command in your terminal to deploy your project.firebase deployOnce the command is executed it provides an output with the link to the firebase project console and URL of the deployed project through which you can access your application through any device.Now your Angular application is deployed with Firebase successfully. Comment More info U udaygajavalli Follow Improve Article Tags : Git GitHub AngularJS-Questions Explore Git Tutorial 6 min read Git IntroductionGit Introduction 11 min read Introduction to Github 5 min read An Ultimate Guide to Git and Github 12 min read What is Git? 6 min read What Is Gitlab? Complete Guide 4 min read Git Bash 9 min read Git Installation and SetupHow to Install GIT on Linux 4 min read How to Install Git on Windows Command Line? 3 min read Git - Environment Setup 2 min read How To Install Git on Ubuntu 20.04 3 min read How to Install Git in VS Code? 2 min read How to Install Git on Cygwin? 2 min read How to Install and Use GIT in Android Studio? 4 min read How to Setup Git Using Git Config? 3 min read Git- Setting up a Repository 3 min read How to install Git on Redhat Linux 9? 4 min read How to Install Git on Termux? 2 min read How to Install Git in FreeNAS? 4 min read How to Install Git on Raspberry Pi? 2 min read How to Install GIT on VMWare? 2 min read How to Install Git in Cpanel Server? 3 min read How To Install Git on AWS? 2 min read How to Setup Git Server on Ubuntu? 6 min read How to Install Git on Windows Subsystem for Linux? 2 min read All Git CommandsBasic Git Commands with Examples 4 min read 50+ Essential Git Commands for Beginners and Developers 7 min read Top 12 Git Commands for Every Developer 9 min read Essential Git Commands 3 min read Useful Git Commands and Basic Concepts 5 min read All Git Commands You Should Know 8 min read Simple and Concise Git Commands That Every Software Developer Should know 4 min read Most Used Git CommandsWhat is Git Init? 6 min read What is Git Pull? 6 min read What is Git Push? 8 min read What is Git Clone? 7 min read Git Rebase 8 min read How To Fetch Remote Branches in Git ? 3 min read Git - Status 3 min read What is Git Add? 3 min read What is Git Commit? 5 min read Git Reset 3 min read Git BranchBranching Strategies in Git 8 min read Introduction to Git Branch 4 min read How To Create Branch In Git? 2 min read How to Create a Branch In Git from Another Branch? 3 min read How to Create a New Branch in Git and Push the Code? 8 min read How To Publish A New Branch In Git? 4 min read How to Create Git Branch With Current Changes? 1 min read Create a Git Branch From Another Branch 4 min read How to Create a New Branch in Git? 4 min read How to Create Branch From a Previous Commit Using Git? 2 min read How To Visualizing Branch Topology in Git? 3 min read How to Check Branch in Git? 2 min read How to Clone a Branch in Git? 3 min read How to Fetch All Git Branches? 2 min read Git MergeGit - Merge 5 min read Git Checkout And Merge 6 min read How to Merge Two Branches in Git? 4 min read How to Merge a Git Branch into Master? 3 min read How to Replace Master Branch with Another Branch in GIT? 2 min read Git Merge and Merge Conflict 3 min read Git Tools and IntegrationWorking on Git for GUI 4 min read How Git Version Control Works? 11 min read How To Write CI/CD Pipeline Using GitLab? 8 min read Git and DevOps: Integrating Version Control with CI/CD Pipelines 11 min read How To Create A Basic CI Workflow Using GitHub Actions? 5 min read How To Set Up Continuous Integration With Git and Jenkins? 4 min read How to Set Up a CI Pipeline for Ktor Using GitHub Actions? 6 min read Introduction to GitHub Actions 4 min read Basic CI Workflow For Android using GitHub Actions 2 min read Integrating Jenkins With Popular GitHub 8 min read Managing Git Repositories with GitLab 3 min read Git Remote RepositoriesUnderstanding Version Control with Git 8 min read Git- Setting up a Repository 3 min read Creating Repository in GitHub 3 min read Working With Git Repositories 7 min read Collaborating with GitGit - Fork 5 min read Difference Between fork and clone in GitHub 3 min read How to Fork a GitHub Repository? 3 min read Sync Your Fork With Master in GitHub 3 min read How to Update or Sync a Forked Repository on GitHub? 2 min read Like