Walfy Doc
Installation PlansSupport
  • Introduction
  • Changelogs
  • Getting Started
  • 🚀Admin Setup
    • 1. Flutter Installation
    • 2. Code Setup
    • 3. Firebase Setup
      • 3.1 Firestore Database Setup
      • 3.2 Database Security Rules
      • 3.3 Database Index Setup
      • 3.4 Firebase Storage Setup
    • 4. Code Configs
    • 5. Upload to Firebase Hosting
    • 6. Conclusion
  • 📱App Setup
    • 1. Introduction
    • 2. Code Setup
    • 3. Firebase Setup for Android
      • 3.1 Android Package Name Setup on Firebase
      • 3.2 Change Package Name Android
      • 3.3 Generate Debug Certificate
      • 3.4 Generate Release Certificate
      • 3.5 Google Sign In Setup for Android
      • 3.6 Additional Firebase Setup for Android
    • 4. Push Notification Setup
    • 5. Ads Setup
      • 5.1 Admob Setup for Android
    • 6. App Information Setup
    • 7. Change App Name for Android
    • 8. Change App Icon
    • 9. Change Splash Icon
    • 10. Run The App
    • 11. Admin Setup
    • 12. Releasing the Android App
  • ✨Updates
    • Migrate to v3.1.0
Powered by GitBook
On this page
  • Install the firebase-tools CLI
  • Install the required command line tools
  • Build The Web App
  • Upload to Hosting
  1. Admin Setup

5. Upload to Firebase Hosting

Previous4. Code ConfigsNext6. Conclusion

Last updated 2 years ago

Install the firebase-tools CLI

Skip this step if you already have firebase tools installed. If you do not have this, you must install that first.

npm download link: (Download and install it)

If you are not sure whether npm is installed on your machine, run $ npm -v , and see if it lists a version number. If it does, then you already have npm. If it says “command not found”, you need to install it.

Once npm is installed, run the following command:

npm install -g firebase-tools

firebase-tools is now installed!

Install the required command line tools

  • Log into Firebase using your Google account by running the following command:

firebase login
  • Type Y and you will be redirected to your browser.

  • Follow the command prompt and the link in your browser. Accept the permissions by clicking Ok. When you return to your terminal you should see that you are now logged in.

  • Now you have to initialize the firebase. Run the following command:

firebase init
  • Use the arrow keys to navigate the cursor to Hosting and hit the spacebar to select it, then press enter. Now you will see this screen:

  • Select an existing project by pressing Enter. Use the arrow keys to select the project you have made in the firebase console.

  • Next, enter build/web as the public directory and press enter, then enter y (for yes) to select the single page app option.

  • Enter n (for no) to Set up automatic builds and deploys with the GitHub option.

Build The Web App

Run the following command to build the app for the web:

flutter build web --web-renderer html --release

Upload to Hosting

Run the following command to upload the admin app to the firebase hosting:

firebase deploy

After this command, you will get a Hosting URL from firebase which will be your Admin URL.

🚀
https://nodejs.org/