Build Complete REST API in NestJs #1 - with TypeScript & MongoDB

  Рет қаралды 55,616

Coding With Abbas

Coding With Abbas

Жыл бұрын

Final Code:
github.com/ghulamabbas2/libra...
Complete In-Depth NestJs UDEMY Courses:
www.udemy.com/course/nestjs-b...
⚙️ Gadgets I use for Recording:
💻 Laptop - Macbook PRO M1 - 16/512
amzn.to/3LbihZB
🎤 MIC - Samson Technologies Q2U USB/XLR Dynamic Microphone
amzn.to/3JoOaMN
🖱️Mouse - Logitech M330 SILENT PLUS Wireless Mouse
amzn.to/3mvDlzu
⌨️ Keyboard - Logitech K380 Multi-Device Bluetooth Keyboard
amzn.to/3T7aCgS
🖥️ Monitor - UltraSharp 24-Inch Screen Led-Lit Monitor (U2419H)
amzn.to/3FazdeK
In this video, we will learn how we can make a complete rest API in NestJS using typescript and MongoDB. We will take a look at the NestJs folder structure and learn about what are modules controllers and services in NestJS.
We will also learn about schemas and also what are data transfer objects or dto's. We will create a library API in which we will create book module and perform all CRUD operations in that.
Like subscribe and share for more videos.

Пікірлер: 55
@abdulwaris5496
@abdulwaris5496 Жыл бұрын
Amazing content and your English is helpful for non-natives!!
@scottm.86
@scottm.86 8 ай бұрын
Great video, very clear instructions and explanation. Thank you!
@user-iz6yb3vt5h
@user-iz6yb3vt5h 6 ай бұрын
Great tutorial and you are a super intelligent developer.
@pabloc1519
@pabloc1519 8 ай бұрын
Thank you for the very straightforward information!!!!!
@user-dd1mg8fd3y
@user-dd1mg8fd3y Жыл бұрын
Lovely, love your data structure, looking forward to more. I have finally found what i will use in learning Nest js with mongodb, best tutorial so far. keep it up
@rehan5383
@rehan5383 8 ай бұрын
You are my hero. beautifully explained.
@kingb772
@kingb772 4 ай бұрын
Really helped, Thank You!
@faustozambrano4901
@faustozambrano4901 17 күн бұрын
Thanks for the tutorial, buddy
@Wardret
@Wardret Жыл бұрын
very good content, GJ
@awaraamin6850
@awaraamin6850 6 ай бұрын
It is an informative video, thank you.
@jhk1869
@jhk1869 Жыл бұрын
you are master!
@revxl722
@revxl722 2 ай бұрын
Great video
@lucasdamasceno7068
@lucasdamasceno7068 Жыл бұрын
Thanks bro. 🎉
@mr_ahmad_70
@mr_ahmad_70 2 ай бұрын
Thank You So Much Sir I was very scared of OOPS bcz my background was of express js and functional only not the classes, thanks to your explanation, now I can do a crud. It would be great if you make a video on Authentication as well
@codingwithabbas
@codingwithabbas Ай бұрын
Already made vide on that: kzbin.info/www/bejne/e3WbpoqdepJ-m7s
@Engineeeer_1
@Engineeeer_1 2 ай бұрын
Great
@irfanopc2466
@irfanopc2466 Жыл бұрын
super
@Khalil.WebDev
@Khalil.WebDev Жыл бұрын
Hello Abbas, I like the way you teach, explain and code in practice. I tried to Enroll to your NestJS course on Udemy but it seems that your course is not included in the Udemy Business content collections.
@codingwithabbas
@codingwithabbas Жыл бұрын
Udemy Business collections is managed by Udemy, this course in not yet present in Udemy for Business, I have 2 other Node.js courses in this collection.
@momoh7888
@momoh7888 Жыл бұрын
thank you
@codingwithabbas
@codingwithabbas Жыл бұрын
You're welcome
@OmarAlJaberProfile
@OmarAlJaberProfile 6 ай бұрын
how we can configure multi tenant dynamicly for different db
@kukuster
@kukuster 2 ай бұрын
NOTE: at minute 9 you will not actually have a successful connection to a database (called "library-next-api" in this case) like on the video, unless you already created it beforehand. But! The database will be created automatically later when you insert a first record
@aryanddaga
@aryanddaga 3 күн бұрын
how do I do that?
@kukuster
@kukuster 2 күн бұрын
​@@aryanddaga you can start mongoDB CLI by executing `mongo` in the terminal, then write `use ` inside. This will create an empty db. But the point of what I wrote is that you can ignore that error, because in the following steps you'll execute something that inserts the first record successfully and it'll automatically create the database for you
@mustafacavuslu3856
@mustafacavuslu3856 8 ай бұрын
Can we call this program library automation?
@phantazzor
@phantazzor 6 күн бұрын
what is dto ? why you need it ?
@josemanuico5613
@josemanuico5613 11 ай бұрын
sql had a grafic ui for the db. Has mongodb the same funcionality?
@MrZnog
@MrZnog 8 ай бұрын
I think you're looking for compass?
@ashishkumari-yg4gn
@ashishkumari-yg4gn Жыл бұрын
Sir, After entering incorrect id , I am getting "Internal Server Error" . But I should not get anything as per this video at 24:38 Even after throwing NotFoundException , I still getting the same "Internal Server Error"
@codingwithabbas
@codingwithabbas Жыл бұрын
Have you checked the console, there should be some error.
@ashishkumari-yg4gn
@ashishkumari-yg4gn Жыл бұрын
@@codingwithabbas CastError: Cast to ObjectId failed for value "63fde815b676376155a4a63o" (type string) at path "_id" for model "Novel" I'm getting this error sir
@spizer98
@spizer98 Жыл бұрын
@@ashishkumari-yg4gn i also get the error so i changed "id" to "_id" it solve the error
@ashishkumari-yg4gn
@ashishkumari-yg4gn Жыл бұрын
@@spizer98 Thank you
@sahilgangwani3847
@sahilgangwani3847 3 ай бұрын
where exactly did you change the id , on all or in PARAM or where?@@spizer98
@yadavkishan3778
@yadavkishan3778 9 ай бұрын
please create rest api nest js ecommer api and react js
@arpanadhikary2533
@arpanadhikary2533 Жыл бұрын
please provide a coupon code for the node js express course
@codingwithabbas
@codingwithabbas Жыл бұрын
Will provide when available.
@lbarria11
@lbarria11 Жыл бұрын
@@codingwithabbashello how are you any coupon for udemy?
@adeelirshad228
@adeelirshad228 Жыл бұрын
Brilliant video. But please speak a little slow I've to watch this video at 0.5X🤣
@franciscooteiza
@franciscooteiza 5 ай бұрын
Ok? .... Ok! .... Ok
@faizul_official
@faizul_official 10 ай бұрын
Amazong tutorial
@paulj3580
@paulj3580 4 ай бұрын
How do you setup your MongoDB bro?
@pelumiabdulraheem3705
@pelumiabdulraheem3705 3 ай бұрын
have you figured it out?
@paulj3580
@paulj3580 3 ай бұрын
@@pelumiabdulraheem3705 yes bro
@paulj3580
@paulj3580 3 ай бұрын
@@pelumiabdulraheem3705 instead of using .env I used to put the connection string in the app.module.ts
@tannedstone3736
@tannedstone3736 11 ай бұрын
28:29
@g-neto6581
@g-neto6581 10 ай бұрын
It doesn't matter what I try, the mongoose connection doesn't work at all
@JamieGomez-cj6hn
@JamieGomez-cj6hn 8 ай бұрын
same here, did you manage to solve it?
@g-neto6581
@g-neto6581 8 ай бұрын
@@JamieGomez-cj6hn unfortunately, I gave up on this project and started a different one to learn rabbitmq with nestjs
@irfanopc2466
@irfanopc2466 Жыл бұрын
are u indian?
@user-qf4zx9qt6r
@user-qf4zx9qt6r 11 ай бұрын
Hello. I completely copied the code but for 17.20pm. In the postman, I have to get an empty array, and I have an error. I will be glad if you tell you how to solve this problem. [Nest] 9008 - 07.07.2023, 13:46:52 ERROR [ExceptionsHandler] command find requires authentication MongoServerError: command find requires authentication at Connection.onMessage (D:\NestApiBook ode_modules\mongodb\src\cmap\connection.ts:413:18) at MessageStream. (D:\NestApiBook ode_modules\mongodb\src\cmap\connection.ts:243:56) at MessageStream.emit (node:events:513:28) at processIncomingData (D:\NestApiBook ode_modules\mongodb\src\cmap\message_stream.ts:187:12) at MessageStream._write (D:\NestApiBook ode_modules\mongodb\src\cmap\message_stream.ts:68:5) at writeOrBuffer (node:internal/streams/writable:392:12) at _write (node:internal/streams/writable:333:10) at MessageStream.Writable.write (node:internal/streams/writable:337:10) at Socket.ondata (node:internal/streams/readable:766:22) at Socket.emit (node:events:513:28)
@marcuuscardoso
@marcuuscardoso 9 ай бұрын
did you manage to solve it? as
@user-my2zg9mr6p
@user-my2zg9mr6p Жыл бұрын
Thank you for the excellent content. It might be beneficial to add the following code to the findById, updateById, and deleteById methods in src/book/book.service.ts: ``` if (!mongoose.isValidObjectId(id)) { throw new BadRequestException('Invalid ID'); } ```
NestJs REST API with MongoDB #2 - Add Pagination & Search
8:08
Coding With Abbas
Рет қаралды 10 М.
Must-have gadget for every toilet! 🤩 #gadget
00:27
GiGaZoom
Рет қаралды 11 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 6 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 61 МЛН
Learn Nest.js from Scratch by building an API
1:09:06
Academind
Рет қаралды 538 М.
NestJs REST API with MongoDB #3 - Pipes, Validation Error and more
12:15
Coding With Abbas
Рет қаралды 7 М.
NestJS in 100 Seconds
2:21
Fireship
Рет қаралды 601 М.
NestJs | Tamil | NestJs Api | Crud | Cheetah Media
1:03:26
Cheetah Media
Рет қаралды 11 М.
Build Nest.js Microservices With RabbitMQ, MongoDB & Docker | Tutorial
1:24:40
Nest.js Crash Course : A Comprehensive Step-by-Step Tutorial
1:10:43
Must-have gadget for every toilet! 🤩 #gadget
00:27
GiGaZoom
Рет қаралды 11 МЛН