I'm already working for a second company that uses Nest and it's great once you get to learn it but overall I believe that just building the backend with Node and express is just as fine. It's overall just a matter of preference.
Honestly, I have a lot of difficulties to take on hands nest. It reminds me Angular. The dev exp doesn't fit for me. Many years ago, I did some PHP with laravel, and the dev exp was amazing. And recently, I discovered AdonisJS which clearly takes the same roads than Laravel. Very pleasant !
Thank you very much for this tutorial. And please also make in depth tutorial on Authorization and authentication in Nestjs. And also make some projects in it. ❤
Your PUT with desctructuring is not working because you did the wrong order there. The following code works: update(bookId: number, updatedBookFields: Partial): Book | undefined { const currentBook = books.find((book) => book.id === bookId); const updatedBook: Book = { ...currentBook, ...updatedBookFields }; books[bookId - 1] = updatedBook; return updatedBook; }
error TS2688: Cannot find type definition file for 'babel__generator'. The file is in the program because: Entry point of type library 'babel__generator' specified in compilerOptions
Even tho I learnt with this, I feel like it could have been more polished, like the @Post you did a lot of confusion, maybe should have just restarted the recording to that part. Edi: the update part was even more of a mess
Bro please start the backend series beginners to advanced from node js with a project please Bro please at least reply that you will make it or not and if so then till me approx time
Man, why are you bothering a tutor for creating a series? We all love Pedro but there are thousands of videos on TH-cam with the topic just you want. Come on, are not you tired of wanting the same things again and again and again? Just use search button and type node.js backend and choose one, it's not rocket science.
Nest.js was written on top of Express and it is filling an empty area of Architecture. It forces you to build a well architectured, organized backend. You can write a backend in different structures at Express so in your team everyone can write it in different ways but in Nest.js there is one way and it is the easiest one trust me. (unless you are working on your own)
just started learning nest, you uploaded this in the right moment
I'm already working for a second company that uses Nest and it's great once you get to learn it but overall I believe that just building the backend with Node and express is just as fine. It's overall just a matter of preference.
Honestly, I have a lot of difficulties to take on hands nest. It reminds me Angular.
The dev exp doesn't fit for me.
Many years ago, I did some PHP with laravel, and the dev exp was amazing. And recently, I discovered AdonisJS which clearly takes the same roads than Laravel. Very pleasant !
It's creator Kamil was from Google team (developer expert) That's the reason of Angular-like syntax (decorator based)
@@bugraotken aaah that is the reason 😅 well I doesn’t annoy me, but I feel better with adonis 😅 we are all influenced by our past experiences
@@jean-louisgouwy I'll check Adonis =))
nice video, kinda reminde of angular,
actually i'm using express, but nest look great
great video.
thx man, plz create a nest and react js tutorial
@47:00, splice remove based on index and not the actual ID of the array
Will you make more NestJS tutorial series?
awesome video. my question is how did you set your terminal like that? please drop the extension
Can have a "NextJS" Tutorial as well. Your tutorials are really helpful. Thank you
Thank you very much for this tutorial.
And please also make in depth tutorial on Authorization and authentication in Nestjs.
And also make some projects in it. ❤
Would love to see a full course of NestJS.
Pedro, this video is very wonderful. You can make a whole tutorial series on this framework ,
follow you from Iraq
Lookin forward to your AWS tutorial man!
Finally pedro🎉❤....been waiting on this cus you teach so well
Well done Pedro. I suggest you do more of backend videos than frontend.
Your PUT with desctructuring is not working because you did the wrong order there.
The following code works:
update(bookId: number, updatedBookFields: Partial): Book | undefined {
const currentBook = books.find((book) => book.id === bookId);
const updatedBook: Book = { ...currentBook, ...updatedBookFields };
books[bookId - 1] = updatedBook;
return updatedBook;
}
Well done Pedro, NestJS is amazing!
@39:28 swap the object in line 31 so its; const updatedBook = {...currentBook, ...updatedBookFields}
which extention to hint the terminal u using ?
please go ahead with a project or an in-depth tutorial using graphql and prisma if possible
Thank you very much pedro!
Please make a full video on nest js with a project. We want nest js + mongodb + react js project with authentication using jwt.
please make mone videos on the Nestjs like authentication, authorization etc... biggener to advance projects. thanks in advance
@3:00 If you are on Windows you need to run cmd as administrator
Great tutorial
Love it ! Thank you very muchhh
in update service don't use map as it does not alter the original array use instead
update(bookId: number, updateBookFields: Partial): Book | undefined {
const currentBook = books.find((book) => book.id == bookId);
const updateBook: Book = {
id: updateBookFields.id ?? currentBook.id,
title: updateBookFields.title ?? currentBook.title,
author: updateBookFields.author ?? currentBook.author,
publicationYear:
updateBookFields.publicationYear ?? currentBook.publicationYear,
};
books.forEach((book, index) => {
if (book.id == updateBook.id) {
books[index] = updateBook;
}
});
return updateBook;
}
Wow Thats great PedroTech
error TS2688: Cannot find type definition file for 'babel__generator'.
The file is in the program because:
Entry point of type library 'babel__generator' specified in compilerOptions
hi do you know if its possible to upload/download images in nestjs if my application is dockerized?
Am I crazy or did you not link the repo/file from @8:50
You are not crazy, I lost the code when my computer crashed. Got it back: github.com/machadop1407/nestjs-tut
thanks
Even tho I learnt with this, I feel like it could have been more polished, like the @Post you did a lot of confusion, maybe should have just restarted the recording to that part. Edi: the update part was even more of a mess
Bro please don't delete comment threads.
thnks man
saudade dos videos :)
Next js when?
NextJs ?
🎉🎉🎉
E for Effort.
Wohoooooo
Bro please start the backend series beginners to advanced from node
js with a project please
Bro please at least reply that you will make it or not and if so then till me approx time
Man, why are you bothering a tutor for creating a series? We all love Pedro but there are thousands of videos on TH-cam with the topic just you want. Come on, are not you tired of wanting the same things again and again and again? Just use search button and type node.js backend and choose one, it's not rocket science.
@@bugraotken i already searched it but most of are old
Why not go study and make one yourself. What you don for Pedro 👀
I hate this concept. Express has better router and we can handle req and res very easy
Good, that's you not us
I was the same. Then I learnt it and never going back to simple express.
This is using express under the hold
Nest.js was written on top of Express and it is filling an empty area of Architecture. It forces you to build a well architectured, organized backend. You can write a backend in different structures at Express so in your team everyone can write it in different ways but in Nest.js there is one way and it is the easiest one trust me. (unless you are working on your own)
same I did not like Nest but I found Adonis.js it is similar to Laravel and easy to learn
I had to do:
sudo npm i -g @nestjs/cli
Is that correct? Otherwise it says I don't have permission.