GCP - Static Website Hosting with Firebase Hosting

GCP - Static Website Hosting
  1. Login to GCP
    1. Select your project with the project selector in the top left. 
    2. If you want a separate project for firebase only please request a project named
  2. Create a firebase hosting project
    1. In the search bar search for firebase hosting and select it
    2. Click create a new Firebase project
    3. Click Add Firebase to google cloud project near the bottom 
    4. Select your project and click continue
    5. Click continue again on the a few thing to remember page
    6. Click continue again on the Firebase pricing plan
    7. Choose to add analytics or not 
    8. Create firebase
  3. Set up hosting
    1. click get started
    2. Open a terminal
    3. Enter the command npm install -g firebase-tools
    4. Change directory to where your website files are that you want to host
    5. Enter the command firebase login
      1. Follow the prompts to login with your @wisc.edu email
    6. firebase init
    7. put your files in the public folder 
    8. firebase use --add project-id
    9. firebase deploy
    10. The site should deploy and give you a url


Keywords:
GCP - Static Website Hosting 
Doc ID:
154418
Owned by:
Brandon E. in Public Cloud
Created:
2025-08-26
Updated:
2025-09-03
Sites:
Public Cloud