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