Firebase Hosting Tutorial #3 - Deploying a Static Website

Net Ninja · Beginner ·🌐 Frontend Engineering ·7y ago

Key Takeaways

Deploys a static website to Firebase Hosting

Full Transcript

okay then my friends so now we've initialized our Firebase project on the front end locally on our computer we've created this public folder with all our different files in and we've also used Firebase serve to preview locally what the website looks like and it looks something like this so now the next step is to actually deploy this to Firebase now if I go to my Firebase console and go to the project that I created I'm going to go over to hosting again and when it pops up click get started go to continue we've done this we've done this we've done this now we need to do this Firebase deploy and that will take whatever is in the public folder and deploy it to the Firebase server so let me now come over here and by the way when you click finish after going through those steps you're going to notice this different panel here and it says it's waiting for our first release so it knows at the minute that nothing has been uploaded but but when it has been uploaded and we've made a deployment this will be the URL to our website right here so then let's now deploy this what I'm going to do is make sure everything is inside public right here we have index about 404 and the Styles now I'm literally just going to say Firebase deploy and make sure I have this in Focus Firebase deploy and then press enter and this will deploy our website so once that that is done you're going to notice down here that we have the project console this is this URL and if we clicked on that it would just open up this page we also have the hosting URL which is where our app has actually been deployed to and this is the URL we would visit if we wanted to preview that in a browser so first of all I'm going to go back over here and I'll click refresh just to see if it now recognizes that we've made a deployment and it does so we can see down here the current version which we've deployed and the time it was deployed and who deployed it now the file say zero at the minute but it will go up to I think four 1 2 3 4 soon enough so let's just wait a second in fact if I refresh we might see this go to four no we don't just yet but it will after a time but what I'm going to do now is try previewing this in the browser so let me now click on this URL and now we can see this site right here so this has successfully deployed if you see something else it might be some kind of placeholder page by Firebase you just have to wait for an extra minute or two eventually it will update as long as you see this deployment right here then it will eventually be shown here okay so this right here this shows the latest release now if I was to make a change and do another release it would show that release instead but sometimes it's nice to see several different releases that we've made for example the last four so what I can do is go over to these three dots right here and go to version history settings now it's going to say that older versions are going to be deleted after one version so it's not really going to show us a list of different versions so what we could do is change this to four for example then we could deploy up to four different versions and each time we deploy one it's going to update over here but then we could view the previous ones and even roll back to those if we wanted to so let me save this and now what I'm going to do is come over here and make some kind of change to the website so inside public let's go to the Styles and instead of crimson I'm just going to say royal blue and we'll do the same down here where we have another crimson color so change that to Royal Blue so all we're doing is changing the color of the title at the top and the little bars on the links so now we've done that change let's deploy this again I'm just going to say Firebase deploy again right here and press enter and then when that's done let me come over here and refresh the this page and if we scroll down here you can see by the way now files is six that's some extra files that Firebase will have thrown in there as well as our files but anyway we can see now the current one is this that we just deployed at 4:02 p.m. and this is the previous one now if I go over here and hard refresh then we can see that update as well so that has worked now what if I wanted to roll back to a previous version well I could find version for example this I could click this and go to roll back and then that is going to roll back to that version right here okay you can see the ID of this deployment matches this one right here the current one so now let me go back over to the browser and refresh and we should be able to see nope we just have to wait a minute I think because it just takes a second let me hard refresh again there we go now it's rolled back to the previous version and if I wanted to delete a previous version then I could do as well I could click on the little three dots again and delete that version so there we go my friends that is how we deploy a static site to Firebase hosting so now we've seen that the next thing I'd like to do is show you something slightly different and that is how to deploy a vue.js website this time to Firebase hosting

Original Description

Learn how to deploy your websites to Firebase! In this Firebase hosting tutorial I'll show you how to deploy and host a static website (HTML & CSS) on Firebase. ---------------------------------------- 🐱‍💻 🐱‍💻 Course Links: Firebase - https://firebase.google.com/ 🐱‍💻 🐱‍💻 Other Relater Courses: Firebase Authentication Tutorial - https://www.youtube.com/watch?v=aN1LnNq4z54&list=PL4cUxeGkcC9jUPIes_B8vRjn1_GaplOPQ Firebase Firestore Tutorial - https://www.youtube.com/watch?v=4d-gIPGzmK4&list=PL4cUxeGkcC9itfjle0ji1xOZ2cjRGY_WB
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Net Ninja · Net Ninja · 0 of 60

← Previous Next →
1 Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Net Ninja
2 Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Net Ninja
3 Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Net Ninja
4 GraphQL Tutorial #1 - Introduction to GraphQL
GraphQL Tutorial #1 - Introduction to GraphQL
Net Ninja
5 GraphQL Tutorial #2 - A Birdseye View of GraphQL
GraphQL Tutorial #2 - A Birdseye View of GraphQL
Net Ninja
6 GraphQL Tutorial #3 - Project (stack) Overview
GraphQL Tutorial #3 - Project (stack) Overview
Net Ninja
7 GraphQL Tutorial #4 - Making Queries (front-end preview)
GraphQL Tutorial #4 - Making Queries (front-end preview)
Net Ninja
8 GraphQL Tutorial #5 - Express App Setup
GraphQL Tutorial #5 - Express App Setup
Net Ninja
9 GraphQL Tutorial #6 - Setting up GraphQL
GraphQL Tutorial #6 - Setting up GraphQL
Net Ninja
10 GraphQL Tutorial #7 - GraphQL Schema
GraphQL Tutorial #7 - GraphQL Schema
Net Ninja
11 GraphQL Tutorial #8 - Root Query
GraphQL Tutorial #8 - Root Query
Net Ninja
12 GraphQL Tutorial #9 - The Resolve Function
GraphQL Tutorial #9 - The Resolve Function
Net Ninja
13 GraphQL Tutorial #10 - Testing Queries in Graphiql
GraphQL Tutorial #10 - Testing Queries in Graphiql
Net Ninja
14 GraphQL Tutorial #11 - GraphQL ID Type
GraphQL Tutorial #11 - GraphQL ID Type
Net Ninja
15 GraphQL Tutorial #12 - Author Type
GraphQL Tutorial #12 - Author Type
Net Ninja
16 GraphQL Tutorial #13 - Type Relations
GraphQL Tutorial #13 - Type Relations
Net Ninja
17 GraphQL Tutorial #14 - GraphQL Lists
GraphQL Tutorial #14 - GraphQL Lists
Net Ninja
18 GraphQL Tutorial #15 - More on Root Queries
GraphQL Tutorial #15 - More on Root Queries
Net Ninja
19 GraphQL Tutorial #16 - Connecting to mLab
GraphQL Tutorial #16 - Connecting to mLab
Net Ninja
20 GraphQL Tutorial #17 - Mongoose Models
GraphQL Tutorial #17 - Mongoose Models
Net Ninja
21 GraphQL Tutorial #18 - Mutations
GraphQL Tutorial #18 - Mutations
Net Ninja
22 GraphQL Tutorial #19 - More on Mutations
GraphQL Tutorial #19 - More on Mutations
Net Ninja
23 GraphQL Tutorial #20 - Updating the Resolve Functions
GraphQL Tutorial #20 - Updating the Resolve Functions
Net Ninja
24 GraphQL Tutorial #21 - GraphQL NonNull
GraphQL Tutorial #21 - GraphQL NonNull
Net Ninja
25 GraphQL Tutorial #22 - Adding a Front-end
GraphQL Tutorial #22 - Adding a Front-end
Net Ninja
26 GraphQL Tutorial #23 - Create React App
GraphQL Tutorial #23 - Create React App
Net Ninja
27 GraphQL Tutorial #24 - Book List Component
GraphQL Tutorial #24 - Book List Component
Net Ninja
28 GraphQL Tutorial #25 - Apollo Client Setup
GraphQL Tutorial #25 - Apollo Client Setup
Net Ninja
29 GraphQL Tutorial #26 - Making Queries from React
GraphQL Tutorial #26 - Making Queries from React
Net Ninja
30 GraphQL Tutorial #27 - Rendering Data in a Component
GraphQL Tutorial #27 - Rendering Data in a Component
Net Ninja
31 GraphQL Tutorial #28 - Add Book Component
GraphQL Tutorial #28 - Add Book Component
Net Ninja
32 GraphQL Tutorial #29 - External Query File
GraphQL Tutorial #29 - External Query File
Net Ninja
33 GraphQL Tutorial #30 - Updating Component State
GraphQL Tutorial #30 - Updating Component State
Net Ninja
34 GraphQL Tutorial #31 - Composing Queries
GraphQL Tutorial #31 - Composing Queries
Net Ninja
35 GraphQL Tutorial #32 - query variables
GraphQL Tutorial #32 - query variables
Net Ninja
36 GraphQL Tutorial #33 - Re-fetching Queries
GraphQL Tutorial #33 - Re-fetching Queries
Net Ninja
37 GraphQL Tutorial #34 - Book Details Component
GraphQL Tutorial #34 - Book Details Component
Net Ninja
38 GraphQL Tutorial #36 - Styling the App
GraphQL Tutorial #36 - Styling the App
Net Ninja
39 GraphQL Tutorial #35 - Making a Single Query
GraphQL Tutorial #35 - Making a Single Query
Net Ninja
40 Build Apps with Vue & Firebase - Udemy Course
Build Apps with Vue & Firebase - Udemy Course
Net Ninja
41 Updated Vue & Firebase Course (Udemy)
Updated Vue & Firebase Course (Udemy)
Net Ninja
42 Vue & Firebase Real-time Chat (Preview) #1 - Intro
Vue & Firebase Real-time Chat (Preview) #1 - Intro
Net Ninja
43 Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Net Ninja
44 Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Net Ninja
45 Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Net Ninja
46 Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Net Ninja
47 Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Net Ninja
48 Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Net Ninja
49 Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Net Ninja
50 Object Oriented JavaScript Tutorial #1 - Introduction
Object Oriented JavaScript Tutorial #1 - Introduction
Net Ninja
51 Object Oriented JavaScript Tutorial #2 - Object Literals
Object Oriented JavaScript Tutorial #2 - Object Literals
Net Ninja
52 Object Oriented JavaScript Tutorial #3 - Updating Properties
Object Oriented JavaScript Tutorial #3 - Updating Properties
Net Ninja
53 Object Oriented JavaScript Tutorial #4 - Classes
Object Oriented JavaScript Tutorial #4 - Classes
Net Ninja
54 Object Oriented JavaScript Tutorial #5  - Class Constructors
Object Oriented JavaScript Tutorial #5 - Class Constructors
Net Ninja
55 Object Oriented JavaScript Tutorial #6 - Class Methods
Object Oriented JavaScript Tutorial #6 - Class Methods
Net Ninja
56 Object Oriented JavaScript Tutorial #7 - Method Chaining
Object Oriented JavaScript Tutorial #7 - Method Chaining
Net Ninja
57 Object Oriented JavaScript Tutorial #8 - Class Inheritance
Object Oriented JavaScript Tutorial #8 - Class Inheritance
Net Ninja
58 Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Net Ninja
59 Object Oriented JavaScript Tutorial #10 - Prototype
Object Oriented JavaScript Tutorial #10 - Prototype
Net Ninja
60 Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Net Ninja

Related Reads

Up next
How to Speed Up Your WordPress Website with WP Rocket ⚡Tutorial 2026
Matt Tutorials
Watch →