Angular Universal and Firebase Hosting (Server-side Rendering with JavaScript Frameworks)

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 114

  • @user-hd6yp7pf1x
    @user-hd6yp7pf1x 5 лет назад +13

    Does anyone know an angular version 7 for angular universal and firebase as this videos a bit outdated now?

  • @RaviRajput-ff5le
    @RaviRajput-ff5le 7 лет назад

    was eagerly waiting for you next video.. even an hour ago i was checking firebase channel for new video..thanks

  • @RichardDavenport
    @RichardDavenport 7 лет назад +1

    I love frienders! Thanks guys, keep up the good work!

  • @IngAjVillalon
    @IngAjVillalon 6 лет назад +6

    In angular 6 everything is different.
    Will we have an updated video so that we can achieve the server side render in firebase functions with angular 6?
    Please help us with that.

  • @CrewnieMasterDeveloper
    @CrewnieMasterDeveloper 6 лет назад

    It is amazing to be able to compile your applications made in angular on the server.
    I am very excited because this keeps growing.

  • @ValAllenSamonte
    @ValAllenSamonte 7 лет назад +13

    Hopefully the CLI team will be able to minimize the work done here

    • @yevheniiherasymchuk
      @yevheniiherasymchuk 6 лет назад

      This is for sure, so many redundant changes which could be automated, as you know from the beginning of the project that you want SSR

    • @maazm4722
      @maazm4722 4 года назад +1

      ng add @nguniversal/express-engine
      :=)

    • @ValAllenSamonte
      @ValAllenSamonte 3 года назад

      @@maazm4722 yup, this comment was from 3 years ago. thanks tho!

  • @TheAlbertoArdito
    @TheAlbertoArdito 7 лет назад +4

    There's an error in the "server/index.ts" file. The correct directory for the "index.html" is "/dist-server/index.html" and not just "index.html", so the correct "document" variable value is:
    const document = fs.readFileSync(__dirname + '/dist-server/index.html', 'utf8');
    Obviously you need to generate again the "index.js" file in the functions folder using "tsc".
    With this correction everything works.
    Thank You!!

    • @akashsalow5009
      @akashsalow5009 6 лет назад

      Thank You. @Firebase Please rectify it in the video

    • @LahibYoussef
      @LahibYoussef 6 лет назад

      If you look closely, then you will see that he pastes the index.html file in the root of functions and not in the dist-server folder. I had the same issue. But i agree in it should be in dist-server instead of in the root of functions

  • @ValAllenSamonte
    @ValAllenSamonte 7 лет назад +8

    Also, I would love to see the Firebase SDK to have offline first support for PWAs (offline like caching the fetched data from firebase)

    • @MuhammadbinYusrat
      @MuhammadbinYusrat 3 года назад

      Firebase SDK for angular does support offline-first approach.

    • @MuhammadbinYusrat
      @MuhammadbinYusrat 3 года назад +1

      @@ValAllenSamonte Yes, and I replied today for anyone else reading in the future.

  • @rongsenng
    @rongsenng 7 лет назад +5

    Huh?!
    600 seconds or 5 minutes?
    1200 seconds or 10 minutes?

  • @bookstylus4525
    @bookstylus4525 7 лет назад +1

    Awesome! Waiting Vuejs!

  • @michaeltangen
    @michaeltangen 5 лет назад +4

    "quickly" 0:24

  • @pablo384
    @pablo384 7 лет назад +1

    I would like the git repository of this example, please. only I found with universal but not to Firebase Cloud Functions

  • @gopikasankar580
    @gopikasankar580 4 года назад

    Hi, I have a website application in angular 9. I use angular universal to get it server side rendered and when I am locally testing,it got rendered.But after I deployed it in firebase, I can't be able to view the rendered page source.What should I do ?.. ..Please help..

  • @LarsRyeJeppesen
    @LarsRyeJeppesen 4 года назад

    I wonder when functions will be available outside the US.. it makes SSR useless with functions anyone hosting on a region outside US

  • @MaximilianoDallaPorta
    @MaximilianoDallaPorta 7 лет назад +2

    no git repository for this example?

  • @polypus74
    @polypus74 6 лет назад +1

    Is this still the situation today? Is there some official solution? I am evaluating angular and this makes me want to run the other way screaming.

  • @nucik
    @nucik 7 лет назад

    I followed your instructions and my issue is that the express app is not called. Should I setup something else except rewrite in my firebase.json? Also when I try to execute function manually using function's URL I get "Billing account not configured. External network is not accessible and quotas are severely limited. Configure billing account to remove these restrictions".

  • @sawkhinmaungthoo5063
    @sawkhinmaungthoo5063 6 лет назад +2

    is angular 6 different ?
    i can see html in chrome inspector not only javascript .

    • @ishanmahajan7264
      @ishanmahajan7264 6 лет назад

      Inspector shows rendered one not the source check it's source and all see will be nothing

  • @estebanpa7923
    @estebanpa7923 7 лет назад +1

    Hi David, what VSCode plugin do you use for angular?

  • @TheLostBrain
    @TheLostBrain 7 лет назад

    Kudos to the presentation - very well delivered. However, Uhhh... omg I find this just a bit complex for what we're trying to accomplish. I think I'll skip server side rendering for now and come back around when we have more convention, etc. in place. :) Good job on the angular-universal-express-firebase module though it's a very good step in the right direction. :)

  • @federicomorenorodriguezcha7592
    @federicomorenorodriguezcha7592 6 лет назад +1

    #AskFirebase #AskDavidEast Hi David! Many thanks for you videos. We are struggled with the SRR implementation, and it seems that is beacause an incompatibility with angulafire2. I have this error message: "Cannot read property 'filter' of undefined at _firebaseAppFactory", "The XMLHttpRequest compatibility library was not found" "Firestore has already been started and persistence can no longer be enabled server side rendering" "cannot read property host of undefined" (the line of window.location.host). Do you have any idea about this issue?

  • @tenaciousprevailer99
    @tenaciousprevailer99 7 лет назад +2

    can you please share a github link for this demo?

  • @MuhammadHasan91
    @MuhammadHasan91 5 лет назад +3

    Video is outdated ))

  • @godotShaderBoy
    @godotShaderBoy 7 лет назад +5

    Does it work with angularfire2?

  • @kolmakovruslan
    @kolmakovruslan 7 лет назад +1

    What is the font in your vscode?

  • @BusinessSchoolPeru
    @BusinessSchoolPeru 7 лет назад +2

    How would you work now that the default is angular5? Since it mentions that it comes with tools to be able to make the server side rendering.
    "In 5.0.0, the team has added ServerTransferStateModule and the corresponding BrowserTransferStateModule. This module allows you to generate information as part of your rendering with platform-server, and then transfer it to the client side so that this information does not need to be regenerated. "
    Besides that now we also have firestore.
    blog.angular.io/version-5-0-0-of-angular-now-available-37e414935ced

  • @martinfreire6733
    @martinfreire6733 7 лет назад

    Thank you! nice example

  • @kartikwatwani
    @kartikwatwani 5 лет назад

    The module created by you 'angular-universal-express-firebase' is giving error mergeMap not found

  • @townepharmacies7592
    @townepharmacies7592 6 лет назад +2

    No matter how much I try to do this, it does not work.

    • @LahibYoussef
      @LahibYoussef 6 лет назад

      github.com/Intellinto/angular-boilerplate/tree/feature/ssr

  • @abhishekpandey2003
    @abhishekpandey2003 6 лет назад

    Hello in my project i have angular.json instead of .angular-cli.json , how can i change kindly help me

  • @pierrechavaroche7060
    @pierrechavaroche7060 6 лет назад

    Does AngularFire2 with Firestore supports Angular Universal? That would be very important for us to know.
    Thank you for the great video!

  • @EwanZaidi
    @EwanZaidi 6 лет назад

    Hello, I have an error on server/index.ts.. It stated that cannot find module 'firebase-functions', can somebody help me with it?

  • @tarikhuber6174
    @tarikhuber6174 7 лет назад

    Awesome 😁 waiting for the react part 😀

  • @tsortanidischristos412
    @tsortanidischristos412 7 лет назад

    Hey David, at 16.10 we have to add express too or it's bundled in the package you wrote?
    And also I'm failing with a ``` Error: Error parsing triggers: Cannot find module '@angular/core' ``` even though I have installed all dependencies

  • @abdallahabdedaiem51
    @abdallahabdedaiem51 2 года назад

    Thanks for sharing! It's been a while since this has been shared. I've everything running fine. Now I want to set meta tags from api call on server? is that possible? I created logic for making that but that doesn't show up as expected when I check 'doc' in response? I appreciate any kind of help.

  • @in.abhijeetbharti
    @in.abhijeetbharti 6 лет назад

    hello
    I am trying to connect to connect custom domain with firebase web hosting but it always shows "needs setup".
    Please help me

  • @macahilas
    @macahilas 7 лет назад

    Dear David,
    This is great for a single page site. I have a multiple pages website and if I try to go to the page manually or refresh the page, it gives me an error. "Error: could not handle the request". I tried to put ' "destination": "/index.html" ' and then gives me this error ' Error: HTTP Error: 400, hosting.rewrites[0] is not exactly one from [subschema 0],[subschema 1] '. Sorry to ask here but apparently, I am the only one having this issue. I have not been able to find an answer anywhere. Could you please help me with this? Thanks.

  • @JD-yz8cn
    @JD-yz8cn 6 лет назад

    This is a mess that now lives in my brain. Was this before Angular added `platform-server`?

  • @fedor_U
    @fedor_U 7 лет назад

    @Firebase Failed to complete. After trying to start locally(firebase serve --only functions,hosting) I get 'moduleFactory.create is not a function' with latest angular cli and angular5

  • @mrbassocam
    @mrbassocam 6 лет назад

    it still works with Angular 6 🤔 or there is a new way of doing SSR with angular 6 + firebase hosting?

  • @09sangram
    @09sangram 4 года назад

    How to deploy angular SSR application in cpanel ?

  • @trackerprince6773
    @trackerprince6773 7 лет назад

    David will the React SSR video include Redux integration ?

  • @Mazziko
    @Mazziko 6 лет назад +1

    i think this video is outdated now, so many things has changed on Angular-6

  • @jguillendev
    @jguillendev 7 лет назад

    Como vas a mantener un websystem así durante 10 años ? Y para un website... No es mucha complejidad ??

  • @NayanHathiwala
    @NayanHathiwala 7 лет назад

    Hi David (+firebase), I'm using UIKIT for my design framework, I have npm installed uikit package and added the references to 'styles' and 'scripts' in .angular-cli.json file. My app rendering state is SSR, which compiles well but it fails to package in my all extended scripts which I had added in .angular-cli.json file. I have tried non-ssr project which executes with no issues. Please, can you assist me with what might be wrong or can do to make it work.

  • @vipzip8863
    @vipzip8863 7 лет назад

    What if the client or spider hits a route apart from index?

  • @danielakachi3666
    @danielakachi3666 6 лет назад

    Cool intro

  • @marticrespi7020
    @marticrespi7020 6 лет назад

    Hi, after build app 0 and app 1, I can't extract AppServerModuleNgFactory from main.bundle.js! I have my app splitted in 4 modules, an inside main bundle I can find them, but My AppServerModuleNgFactory is missing. Someone can help me? I am using angular 5, and I have read than it doesn't generate ngFactory.ts files!
    Thanks!

  • @koulor5175
    @koulor5175 7 лет назад

    Awesome! Thanks!

  • @kartikwatwani
    @kartikwatwani 5 лет назад

    I cannot build with command `ng build --prod --app 1` because structure has changed in angular 6 now it is an object inside architect as instructed on angular.io/guide/universal. Can you expalain on how to do it now ?

  • @michaeltangen
    @michaeltangen 5 лет назад

    I've labored over Universal 6 and trying to get it to work in Firebase for the past couple days now following tutorials on the online documentation, blog posts, and other tutorials out there and there's nothing quick or easy about this. In fact, I still can't get it to work (at all). At this point, it almost seems a better use of my time to just make the entire site in static HTML for the sake of getting Google's bots to actually read the web content instead of trying to serve it up with Angular and not be read at all.
    It would be IMMENSELY helpful (and I cannot understate this) if Angular and/or Firebase could streamline the process of doing what Universal is supposed to do without all this nonsense. The site I'm working on uses Angular heavily but if it can never be read by Google Search Bots or social network sharing, I hardly see the point of using Angular at all. It would be nice to see Angular and Firebase work together to address this with a more streamlined solution, one that doesn't require hours of configurations and days of tearing your hair out because things just don't work the way people say they will in their documentation, tutorial, or blog post.

  • @kartikajas
    @kartikajas 7 лет назад +1

    Unfortunately, This doesn't support lazy loading :{

  • @MrGutoVianna
    @MrGutoVianna 5 лет назад +1

    Uh! I It´s too soon to adopt FirebaseHosting, CloudFuncition and Angular (ssr or not). To much work!!!

  • @Kalebviews
    @Kalebviews 7 лет назад

    Wish you started with React.js but I'm sure this will be useful in the future when I add Angular to my tool box.

  • @cutiko
    @cutiko 7 лет назад +1

    Im really looking forward for the React version of this, kind of got confuse with the Angular code. When you do the React version can you please reinforce the Firebase work thar has to be done? Please :)

  • @himanibhardwaj7526
    @himanibhardwaj7526 5 лет назад

    Hi,
    I want to deploy my angular universal code on a2 shared hosting. Could you please make a session on that. It would help me. Thanks

  • @siyabon_ga
    @siyabon_ga 5 лет назад

    Can you please create an updated video

  • @langhoangal
    @langhoangal 5 лет назад

    Anyone here still struggle with this till now? I'm trying to implement it but got error with firestore (i'm not using cloud function for some reason).
    The error was 'Cannot read property 'stringify' of undefined'. I already post a question here: stackoverflow.com/questions/53994844 and on firebase comunication slack but get nothing till now. It would be great if you can give me a hand!?

  • @filipwork4614
    @filipwork4614 6 лет назад

    The music is pretty similar to the one from the show "Everybody hates Chris"

  • @imsarvesh
    @imsarvesh 7 лет назад +1

    Awesome

  • @bovornpotjindachuen6090
    @bovornpotjindachuen6090 6 лет назад

    How settings in angular.json file in angular 6 ?

  • @navnitkapadia9338
    @navnitkapadia9338 6 лет назад

    issue angular routing is not working

  • @alexon2010
    @alexon2010 6 лет назад

    I want to put this into practice, now I could find this same code, so I need to type for example css

  • @tchoutangbankouemichelfran5386
    @tchoutangbankouemichelfran5386 6 лет назад

    hi guy!! i like what you do a lot. please could you do videos and tutos on vuejs & firestore?!! i really need your take that area. thanks in advance

  • @niahi
    @niahi 7 лет назад

    Would love to know when is the React video comming...

  • @setoelkahfi
    @setoelkahfi 7 лет назад

    waiting for blahblahblah.js version :)

  • @markpieszak5365
    @markpieszak5365 7 лет назад

    For those using the Angular CLI, we have just updated the universal-starter so you can get started right away :)
    Find it here: github.com/angular/universal-starter/tree/master/cli
    I also made a PR and the CLI wiki will be updated so you can follow along with each step needed to get you up and running quickly. Find the PR here: github.com/angular/angular-cli/pull/7796/files
    Hope that helps!

  • @TheGrafox
    @TheGrafox 7 лет назад

    Thank you

  • @EricBichara
    @EricBichara 7 лет назад

    this needs a repo, following was close to impossible at this break-neck speed ;-)

  • @nicoale5325
    @nicoale5325 7 лет назад

    Waiting for Next.js

  • @ashishjangid5201
    @ashishjangid5201 7 лет назад +1

    @9:49 I think he missed /dist-server

    • @anima651
      @anima651 7 лет назад

      What do you mean?

    • @ashishjangid5201
      @ashishjangid5201 7 лет назад

      Shoba Hasini I think instead of /index.html it should have been /dist-server/index.html

  • @clayton.passos
    @clayton.passos 7 лет назад

    many settings to get little result
    We need more convention-oriented programming

  • @fosteradorkor5940
    @fosteradorkor5940 6 лет назад

    Hi david
    Can you please post the link to the code

  • @DavieRobertson
    @DavieRobertson 7 лет назад

    another vote for Polymer please

  • @tungbt94
    @tungbt94 7 лет назад

    Vue and Nuxtjs please

  • @heratpatel7174
    @heratpatel7174 7 лет назад

    waiting for React.

  • @mertellialti
    @mertellialti 2 года назад

    14:35

  • @mertellialti
    @mertellialti 2 года назад

    3:26

  • @DridgeDEU
    @DridgeDEU 7 лет назад

    Does this guy have a non-Firebase channel?

    • @nikclarx
      @nikclarx 7 лет назад

      With more outtakes?

  • @lutfucan90
    @lutfucan90 7 лет назад

    Vue seems popular lately. Can we have a bite?

  • @meghashyambhandary4191
    @meghashyambhandary4191 7 лет назад

    Waiting for ssr with react and preact.

  • @alexcheema94
    @alexcheema94 7 лет назад +9

    Vue plz ;)

  • @MetalStorm66
    @MetalStorm66 7 лет назад

    React!!!!!!!!!!!!!!

  • @KevinSheppard
    @KevinSheppard 7 лет назад

    So much config...

    • @markpieszak5365
      @markpieszak5365 7 лет назад +1

      Spent lots of time getting these finished last night, but they're both updated, hopefully it helps!
      Universal-starter with the CLI: github.com/angular/universal-starter/tree/master/cli
      Updated CLI wiki on Universal integration: github.com/angular/angular-cli/pull/7796/files

  • @ayepaiko
    @ayepaiko 7 лет назад

    React pleaseeeee

  • @devexpert2662
    @devexpert2662 6 лет назад

    I am not sure why people in google can make such type of videos as this guy is doing very fast changes and its useless to create videos like these with configuration setups. There should be auto initialization of this code with angular CLI. It just create complexity and negativity in my head.

    • @manojisaac
      @manojisaac 6 лет назад

      vishal.. i love david east his style and personality.. please check out his other videos.. i am his fan..

  • @earlkaii
    @earlkaii 7 лет назад

    Vue please