You can read more about the build script here. You can choose to run a build script before every deployment, set npm run build as the build script to run. It will set up an account FIREBASE_SERVICE_ACCOUNT for your project. You would be asked which GitHub repository you would like to set up a GitHub workflow, choose the GitHub repository with your in it. Set your public directory as build/web and accept other prompts to configure to a single page app and set up automatic builds with GitHub. Projects in your Firebase will be displayed and you get to choose which project you want to deploy on To initialize a new Firebase project for hosting, run the following command from within your app's directory: firebase init hosting You would be prompted to grant permission to Firebase to link your Firebase account to your project. Login to your Firebase accountĪfter the installation of Firebase tools run firebase login in your app directory to log in to your Firebase account. You can download firebase tools manually from firebase official docs.Īlternatively, if you have Node.JS installed on your machine running npm install -g firebase-tools in the terminal would download firebase tools. To begin using Firebase in your project you need to download firebase tools. With that out of the way let's dive into it. Prerequisite:Ĭreate and push your Flutter project to a GitHub repository.Ĭreate a new project on the Firebase console to create a new project on the Firebase console visit Firebase console. In this tutorial, we will learn how to deploy our flutter web app using firebase. Flutter web recently hits the stable milestone, meaning the web is officially another platform to build your flutter projects on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |