NestJS: CRUD API & Typeorm with Observables | Blog Project V-02

preview_player
Показать описание
Remade Thumbnail on 06.06.2020.
Link to repository:

If you clone the repo, don't forget to replace the Postgres Database Url in the .env file. Everything is described in the readme :)

Timestamps:
00:22 Video Structure
00:34 Look at Video Outcome
02:10 Write the story that we implement in the video
04:40 Use of Git Flow
06:14 Create user Module and service/controller/models with the cli
08:25 User Entity Class
10:28 userService with use of TypeOrm Repository
14:20 userController / Endpoints
21:30 Test Endpoints with Postman
27:10 Commit Changes and finish feature from gitflow
32:05 Overview over the Content of the next Video (Part 3 of Blog Series)

I appreciate every feedback in the comments and would be happy if you also like && subscribe :)

NestJS is used in v7.
Angular is used in v9.
Nodejs is used in v12.
NPM is used in v6.

Frameworks:

Tools:
Рекомендации по теме
Комментарии
Автор

This is the first time i've seen a tutorial when the instructor start first by writing a story and acceptance criteria on trello. That's really professional and close to real world. Thank you a ton, i 've learned so much!

kayodeadechinan
Автор

You are doing this in such organised manner man, love you
this is a billion dollar course

RahulGupta-gooe
Автор

Seriously i love the way u teach, very professional. U teach the real task in reality jobs :)

cubedev
Автор

🙏🙏🙏 what a professional teaching #Thomas. I haven't seen such kind of tutorial anywhere till date. If any beginner is taught coding this way he would emerge as a best developer within no time. My sincere thanks to you. Help us learn from you.

priyathamj.s
Автор

Excellent video! One thing to add here, all controller endpoints dealing with body data like create and update should use a DTO instead of an interface.

This allows you to configure Nest to use class-validator and class-transformer directly on the incoming data.

Looks like this:
class UserDTO implements User {
readonly id?: number;
readonly ....
...
}
user: User becomes user: UserDTO

philheathslegalteam
Автор

Love you sir, Great helpful video series, you soon get large success on youtube, because of your quality content

yogeshvishnole
Автор

The Trello detail is very professional. You think before writing code

boomboom-
Автор

Thank you so much for this tutorial. Please make an advanced NestJS video. I love this series.

rahulshimpi
Автор

It makes sense to me. Thanks so much for your course. I've liked and subscribed.

fhhf.
Автор

Good knowledge, good video directing, useful small tips. Good job! 👏

abstractalgo
Автор

Thomas quak would be in this case the advantages of using Observable instead of promises. I still don't really understand the difference and what I can gain from this use. And congratulations for the content is top.

elvesbrito
Автор

If you experience this error in the UserService file, in the findOne(id: number) method"Argument of type '{ id: number; }' is not assignable to parameter of type 'FindOneOptions<UserEntity>'.
Object literal may only specify known properties, and 'id' does not exist in type 'FindOneOptions (etc)", instead of passing only "{ id }" use the typorm's "where" keyword like this: findOne(userId: number): Observable<User> { return { where: {id: userId} } )); } . I have changed the argument's name in the method just to avoid future confusion when going back to that function.

marloncoutoribeiro
Автор

Did not finding a repository in github branches can you please tell how to find the links for particular day wise

kharmaleakshay
Автор

I am getting this issue while posting the users info in postman. Can someone help me please?
{
"statusCode": 404,
"message": "Cannot GET /users",
"error": "Not Found"
}

nishattasnimmithila
Автор

Thanks for this great video series Thomas but please for future videos try to increase the font size of reduce the record screen size because it is really hard to see on mobile

carlosdelgado
Автор

Could you help me to declare the function addToCart? I have no idea about that. Thank in advance

sangLe-euoo
Автор

Jesus why are you hurting your Enter key like that

DodaGarcia
Автор

Hi, how can I make multiple save on repository ? I'd like to be able to send an array from object from the frontend, this array arrives on the nest typeorm backends and then each object of the array is saved on the repo with a loop ... any idea ?

johndash
Автор

What's different between user create(user: User): Observable<User> { return };
and create(user: User): Promise<User> {
return
}

Why you use 'rxjs Observable' in this code?

AnhTuanNguyen-vcqf
Автор

Could you explain the result is from?
return
map((user: User) => {
const {password, ...result} = user;
return result;
}),
catchError(err => throwError(err))
)

milojianjunlu
join shbcf.ru