Node.js apps on Firebase Hosting Crash Course - Firecasts

Node.js apps on Firebase Hosting Crash Course – Firecasts



Node apps are here on Firebase Hosting. David takes you through getting set up and shares some performance and development tips along the way.

See the official documentation:

Add the Firecasts playlist!
Subscribe to the Firebase Channel:
Music by

22 thoughts on “Node.js apps on Firebase Hosting Crash Course – Firecasts

  1. Erm, when I set up the firebase hosting, I didn't know there is this firebase functions. Is it a must to use firebase functions? by the way, is there a tutorial on how to use firebase hosting, firestore database and firebase auth with node?

  2. If you are viewing this in 2020 or after. Make sure you change node version to 8 in package.json. Since above version 8 is not free. Change this in your package.json
    "engines": {

    "node": "8"

    },

  3. For those that are asking.. the "facts" data should be in the realtime database associated with the project, and have the format:
    database -> facts
    -> 0
    text: "fact 1 text here"
    -> 1
    text: "fact 2 text here"

  4. Do you always need a public folder ? I am trying to store the backend of a mobile app written in Node.js and it does not have any static content

  5. Someone please help me

    my code is exactly like his I even have a facts reference in my database but i am getting

    Internal Server Error

  6. August 1 2020, this guide is still functional. This was really clear and easy to follow, thanks! I would have liked to see at least a screenshot of what the 'true facts' database looks like in the firebase console though, just to confirm that 'facts' is a collection and what the 'value's look like within the collection.

  7. I have node version 12.18.2 . and while i hitting firebase serve -only hosting,functions ,then i got this error : ! Your requested "node" version "10" doesn't match your global version "12" and while hiting this urlhttp://localhost:5000/timestamp , i got this error 'Unexpected error occurred.' please help me

  8. You turn a blind eye to the problem of creating dynamic sites with firebase hosting, where dynamic content is invoked through the firebase function with regions outside of us-central1. When running or calling the hosting project, the results will get a 403 error.
    Error: Forbidden
    Your client does not have permission to get the URL / your_function / from this server.

  9. This is July 13, 2020. We're in the middle of a pandemic, and since August 2017, things changed! (1) Consider "{{this}}", not "{{text}}" in the handlebar views index.hbs file, haha!!! I was like, "Hey, I got the view with the <li></li> dots, but where did the values of my keys go, from my realtime database called 'facts'?" (2) You better check out changes in the authentication. Lookup GOOGLE_APPLICATION_CREDENTIALS. Grant this environment variable, the path to your Firebase Admin SDK service account private key. Oh yeah, and "go Blaze" in your plan if you plan to deploy.

Leave a Reply

Your email address will not be published. Required fields are marked *