0
0
Firebasecloud

Hosting setup and deployment in Firebase - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Firebase Hosting used for?
Firebase Hosting is a service that lets you quickly deploy and serve web content like HTML, CSS, and JavaScript files with a secure and fast global network.
Click to reveal answer
beginner
Which command initializes Firebase Hosting in your project?
The command firebase init hosting sets up Firebase Hosting in your project by creating necessary configuration files.
Click to reveal answer
intermediate
What file does Firebase Hosting use to configure which files to deploy?
Firebase Hosting uses the firebase.json file to specify which files and folders to deploy and how to handle rewrites or redirects.
Click to reveal answer
beginner
How do you deploy your website to Firebase Hosting?
You deploy your website by running firebase deploy --only hosting, which uploads your files to Firebase servers and makes your site live.
Click to reveal answer
intermediate
Why is it important to set the correct public directory during Firebase Hosting setup?
Setting the correct public directory ensures Firebase deploys the right folder containing your website files, so your site loads correctly when visited.
Click to reveal answer
Which Firebase CLI command starts the hosting setup process?
Afirebase init hosting
Bfirebase deploy
Cfirebase serve
Dfirebase login
What does the firebase deploy --only hosting command do?
ALogs you into Firebase
BDeploys all Firebase services
CStarts a local server
DDeploys only the hosting files to Firebase
Where do you specify which folder contains your website files for Firebase Hosting?
Aindex.html
B.firebaserc
Cfirebase.json
Dpackage.json
What is the default public directory name suggested by Firebase Hosting?
Asrc
Bpublic
Cdist
Dassets
Which Firebase Hosting feature helps serve your site quickly worldwide?
AGlobal CDN (Content Delivery Network)
BRealtime Database
CCloud Functions
DAuthentication
Explain the steps to set up and deploy a website using Firebase Hosting.
Think about initialization, configuration, and deployment commands.
You got /5 concepts.
    Why is choosing the correct public directory important in Firebase Hosting setup?
    Consider what happens if the wrong folder is deployed.
    You got /4 concepts.