0
0
Firebasecloud~10 mins

Firebase project creation - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to initialize a new Firebase project with the Firebase CLI.

Firebase
firebase [1]
Drag options to blanks, or click blank then click option'
Ainit
Bdeploy
Cserve
Dlogin
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'deploy' before initializing the project
Trying to serve without setup
Running 'login' instead of project setup
2fill in blank
medium

Complete the code to select an existing Firebase project during initialization.

Firebase
firebase init [1]
Drag options to blanks, or click blank then click option'
A--project
B--create
C--deploy
D--login
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--create' to select an existing project
Confusing '--deploy' with project selection
Trying to login with '--login' flag here
3fill in blank
hard

Fix the error in the command to deploy Firebase functions after project setup.

Firebase
firebase [1] --only functions
Drag options to blanks, or click blank then click option'
Aserve
Binit
Cdeploy
Dlogin
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'init' instead of 'deploy' to upload functions
Trying to 'serve' functions locally without deploying
Running 'login' instead of deployment
4fill in blank
hard

Fill both blanks to initialize Firebase hosting and select the public directory.

Firebase
firebase init [1] --public [2]
Drag options to blanks, or click blank then click option'
Ahosting
Bfunctions
Cpublic
Dsrc
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'functions' instead of 'hosting' for web setup
Setting the public directory to 'src' instead of 'public'
5fill in blank
hard

Fill all three blanks to deploy hosting with a specific project and confirm deployment.

Firebase
firebase deploy --only [1] --project [2] --[3]
Drag options to blanks, or click blank then click option'
Ahosting
Bmy-firebase-project
Cforce
Dfunctions
Attempts:
3 left
💡 Hint
Common Mistakes
Deploying functions instead of hosting
Omitting the project flag
Missing the force flag to avoid prompts