Going Full Stack Angular with NestJS

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Combine your frontend and your backend into a single project with cohesive patterns by using NestJS. In this demo I show off adding NestJS to an existing Angular application and take advantage of their tooling to show off Server Side Rendering with a fully integrated frontend and backend.
    Learn more about NestJS: nestjs.com

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

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

    This is what I call the proper tutorial. This video should be the only guide for NestJS & Angular.

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

    Oh ! I started playing with nestjs, and I love it, but this way of integration is just awesome ! Thanks a lot !

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

    We've missed you Stephen...... Can you do videos regularly 😍

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

    Very nice video! But we still waiting for a real world example detailed NestJS tutorial from you! Thx in advance!

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

    Big tnx, i am waithing this for a long time!

  • @matteobarbieri2989
    @matteobarbieri2989 5 лет назад +2

    Great! Thanks. It would be even greater to go deep inside the topic. Can you do a small app with data persistance and build for production tips?

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

    For those of you who are getting error, try with `ng add @nestjs/ng-universal --clientProject=[your project name]`

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

    This is amazing, thanks for introducing!

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

    Woah. That’s really cool! Thanks for the vid

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

    Mind. Blown.

  • @mr.chinaski2613
    @mr.chinaski2613 5 лет назад

    Its simply amazing!!! :)

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

    If you're using NPM, then use `npm run serve`

  • @tranquillityEnthusiast
    @tranquillityEnthusiast 5 лет назад +2

    How to deploy nestjs to firebase cloud functions and angular app to firebase hosting ????...

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

    yes, please real world nest - angular app tutorial!

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

    i like it

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

    Can you do a video on Nx + Angular + Nest + Mongo?

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

    Can you please give a real world example of a use case for server-side rendered app with AJAX? Or the advantages of using this kind of stack?

    • @Kinthalis
      @Kinthalis 5 лет назад +5

      Do you mean a server-side rendered SPA? The main benefits are SEO, social site bot support, and fast bootstrapping times and times to meaningful paint.

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

    Hi, It's a great video as always.
    Can you expalin maybe how to deploy this into firebase hosting and functions?

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

    0:57 Just ignore the page full or warnings. You know, it works on my machine! 🤷‍♀️

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

    How to run the app for production in this scenario using (PM2) ?
    Any help please.

  • @dohoangnam9x
    @dohoangnam9x 5 лет назад +2

    so each route needs to be created and controlled by a separate controller?
    like having 50 routes+ ~ 50 controllers?
    well if this integrated server is just for testing purpose then it is totally ok then.
    if this can be a full back-end then I would love to see a detailed tutorial from you, because having the same angular structure when full-stack while maintaining SPA is a dream to be honest

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

      In practice, you'd probably have controllers that are responsible for a group of related routes. If you were building a REST api you might have 'users' as the path for the controller, and each function in the controller would handle the various verbs and sub-routes as well. So GET users, GET users:/id, POST users/create, PATCH users/:id, PUT users/:id/thumbsup, etc, etc.

    • @kamilmysliwiec7394
      @kamilmysliwiec7394 5 лет назад +5

      And obviously, every Angular route is handled & prerendered automatically (you don't have to create dedicated controllers for them)

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

      @@kamilmysliwiec7394 Great work with NestJS.!!!

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

    Interesting ... I must dabble...

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

    Do you know if this Nx command would do the same integration ?
    npx create-nx-workspace@next myapp --preset=full-stack
    I did not test it already :)

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

    How do you launch the front AND the back at the same time with NPM not YARN ?

  • @KishoreKumar-qi9pm
    @KishoreKumar-qi9pm 3 года назад

    is nest is alternative to express??

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

    Hello please help me,
    I am having issues by ng add @nestjg/ng-universal
    Could not resolve dependency:
    npm ERR! peer @angular/animations@"6.1.10" from @angular/platform-server@6.1.10

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

    As soon as I start to add modules for nest my frontend doesnt get served anymore.. just blank html, no errors no nothing

  • @lifelens-p3l
    @lifelens-p3l 3 года назад

    it's not working on angular 12

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

    I installed angular 8 and added nest js but issue is when I use route , it is redirected me to home page instead of /api/hello/ . Do I need to define route

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

      Any chance you resolve this issue?

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

      Make sure you have created your controller within the server folder when running the nest generate controller schematic

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

      @@antonyserralta try running "npm serve" instead of "npm start". start only runs the front-end.

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

    Not a natural couple. So better off decouple them. TypeScript is unified but to share classes between client and server is still weird. Then the benefit is more of a trap. They are together but they are really not

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

      I found it pretty successful when using nx, made a library of classes that can be imported from a namespace, thus sharing them between client and server easily.

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

    i like it