How to Deploy Angular Application to Firebase using GitHub ? Last Updated : 16 Jun, 2024 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://console.firebase.google.comAfter 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 infoAdvertise with us Next Article How to Deploy Angular Application to Firebase using GitHub ? U udaygajavalli Follow Improve Article Tags : Project TechTips Web Technologies AngularJS Git How To Firebase GitHub AngularJS-Questions +5 More Similar Reads Deployment of Angular Application using Github Pages There are various methods to deploy Angular Application such as Github Pages, Heroku, Firebase, etc. The Github provides the simplest way of all using the Github Pages. Steps to Create and Deploy Sample Angular Application to Github Pages: Install Node.js: a. Windows b. LinuxInstall Angular - CLICre 2 min read Deployment of React Application using GitHub Pages Deploying a React application using GitHub Pages is an easy and efficient way to host your projects online for free. In this article, we will walk you through the steps to deploy your React app, making it accessible to users with a live URL. PrerequisitesA GitHub accountNode.js and npm installedBasi 4 min read How to Deploy React App on Netlify Using Github? A React App is a web or mobile application that is built using the React library of JavaScript. It helps users create interactive, single-page, and dynamic applications. These applications are built using HTML, CSS, and JavaScript. Deployment of a React app can be done via GitHub, Netlify, or any ot 6 min read How to authenticate firebase with GitHub in ReactJS ? The following approach covers how to authenticate firebase with GitHub in react. We have used the firebase module to achieve so.Creating React Application And Installing Module:Step 1: Create a React app using the following command:npx create-react-app gfgappStep 2: After creating your project folde 2 min read How to Upload Android APK to Testers Group in Firebase Using GitHub Actions? Testing is always required whenever we build an app to ensure it functions properly in production. It might be time-consuming and inconvenient to send the application to the testers every time new code is merged into the codebase. So to solve this problem, CD pipelines can be used to deliver the sof 3 min read How to Push Anything to GitHub using Git Bash? GitHub has become the go-to platform for collaborative software development, offering powerful tools for version control, collaboration, and project management. Git Bash, a command-line interface for Git on Windows, provides a quick way to interact with GitHub repositories. In this guide, we'll lear 3 min read GitHub Authentication with Firebase GitHub Authentication in Firebase allows users to sign in to our web application using their GitHub credentials. This integration uses GitHub's OAuth authentication system which provides a secure and convenient way for users to access your app. By integrating GitHub authentication, we can enhance us 5 min read How to Delete User Account from firebase authentication in web ? We are working on the firebase series, Firebase gives various functions to use in our application. like database, authentication, hosting, etc., In this article, we will see how to delete a user account from the firebase authentication.Firebase has a delete function that deletes the user account fro 3 min read How to Use Authentication Console in Firebase? Almost all apps need to have some permission system in place. In some circumstances, checking a username/password pair against our Users table is sufficient. Still, frequently, we require a more detailed permissions model to grant specific users access to particular resources while preventing them f 4 min read How to configure an OAuth App from GitHub? OAuth (Open Authorization) is a standard protocol that allows secure authorization from third-party applications. GitHub provides a robust OAuth implementation that allows developers to integrate their applications with GitHub's API seamlessly. Configuring an OAuth App from GitHub can streamline aut 2 min read Like