3:02 The "moduleResolution: node" was deprecated, so instead using "node" it's helpful use "NodeNext" or leave without definition. Awesome tutorial, you helped me a lot!
@JoSh-yu6jt17 күн бұрын
Did everything work for you? I'm getting a 400 Bad Request in postman when I'm trying to register a new user. 🤔
@_indrahan14 күн бұрын
@@JoSh-yu6jt Make sure you send your request (through postman) in JSON format.
@oladapodaniel63727 ай бұрын
I just completed this video, I can say confidently that it's an outstanding video, it has skyrocketed my knowledge in node, and my ability to create REST API, structure my directories correctly, and lots more. Thank you so much Antonio🙏
@AliAliOxenFree Жыл бұрын
This is an outstanding video. Most of my work has been with Nestjs and postgres, but this gave me a clear perspective on a different approach to handle the same REST endpoints. earned yourself a loyal sub!
@codewithantonio Жыл бұрын
Glad it was helpful!
@springerbarry7723 Жыл бұрын
As a front end developer, I finally finish This REST API tutorial in a week. Great Great! Thank you very much! I will conquer all your courses One at a time! Really having fun coding with you Antonio!
@codewithantonio Жыл бұрын
Thank you for watching the tutorial!
@vladyslavfereira69315 ай бұрын
@@codewithantonio hello Antonio! BIG THANKS for thios video, but i have a question. why are you using http here, when u can just put app.listen and server is going to work? im not blaming, jsut cant get it
@vidazarei39514 ай бұрын
I want to show my appreciation for your useful video,I highly recommend to every person who is looking for do complete CRUD with Node,this video is so handy and you can get whatever you need for your REST API.
@irumidisara95475 ай бұрын
Hi Antonio. I found your channel recently and completed coding the REST API. I learnt alot and amused with the way you explain & code all the stuff. I hadn't found a channel like yours before. However It's all super clean❤ You deserve more followers than you have rn. Keep up the great work🤍🥂 Lots of love from Sri Lanka🇱🇰
@vadimbondarenko74168 ай бұрын
Man, your videos are treasure. KZbin should have added respect button. Thank you!
@codewithantonio8 ай бұрын
Glad you like them!
@kalombograce2677 Жыл бұрын
best tutorial on API ts. clean and straight forward no bs. Thanks a lot.
@codewithantonio Жыл бұрын
Glad you like it!
@canra245Ай бұрын
finally no error, thank you
@kwasiezor1630 Жыл бұрын
For the next videos, Can you please Add mongodb all relationships such as one to one, one to many and many to many. It's a topic in which I have lot interest. Thanks
@codewithantonio Жыл бұрын
Thank you so much for the suggestion! I will make sure to put it on my list
@RebaiMoez Жыл бұрын
MongoDb is no sql database so basically there’s no relation between collections
@trackntrail2869 Жыл бұрын
@@RebaiMoez There can be relations between collections in document DBs. While it is advisable to denormalize, there are certainly scenarios where you would query a collection by FK.
@gibsonsgibson1513 Жыл бұрын
@@RebaiMoezactually it is possible to create relationships.
Great video. It's just clean, easy to understand and straightforward. Thanks and keep it up 👍
@codewithantonio Жыл бұрын
Thank you a lot, glad it helped you!
@user-xj1ei4mm5j4 ай бұрын
Your tutorial has been the most useful for me!
@bongjames2222 Жыл бұрын
Wow~~ This is the course I was looking for. I wanted to see a lecture made with node typescript thank you. I should have seen this lecture sooner. I used google translator.
@codewithantonio Жыл бұрын
Glad you like it!
@jousufjacob82519 күн бұрын
You are a pro man.
@user-ej6wd5ey9s Жыл бұрын
Very clean and crisp video Antonio, that's what a good dev and guide should do, gonna watch more content and learn from your channel.
@codewithantonio Жыл бұрын
Much appreciated!
@theovdhd Жыл бұрын
Good tutorial but it might be more helpful to also mention what certain parts of the code are doing and why they're there. At one point, a line is added that is "extremely important" or else the code will not work. It would be nice to get some explanation about why that is exactly.
@codewithantonio Жыл бұрын
I full agree, this was my first video and I didn't really know what I was doing, thank you for the feedback!
@anonymous_basics8 ай бұрын
i also felt same.
@angaragg.31654 ай бұрын
This is a great video. You did a good job.
@off-samuelGYZАй бұрын
I've had having some trouble getting my code to run properly. My main two issues were with user login and checking if an email already exists in the database. My solution was to import the 'User Model' into my controller file and use the findOne method. That little fix did the trick. I'm a junior software developer, so don't get mad at me, seniors software enginnering! lol!
@codingintelugu88206 ай бұрын
Great Video Antonio. One quick thing for others, you don't need body parser as separate package with latest express (>v4), express inbuilts it
@codewithantonio6 ай бұрын
Thanks for the info!
@volodymyrmatselyukh880811 ай бұрын
Pretty interesting stuff. I was looking for Graph QL but landed on this video and couldn't quit) A great video for baking a boilerplate for future projects. Thanks.
@rainyuuu Жыл бұрын
Thank you for this video!! I am a backend noob and this guide helped me a lot! So glad that I came across your video.
@codewithantonio Жыл бұрын
Glad to hear it!
@4dev346 Жыл бұрын
I was able to run the findByIdAndUpdate even though it was not included at the video. Thanks for a very clear and smooth tutorial.
@codewithantonio Жыл бұрын
Glad it helped!
@q585010 ай бұрын
perfect, I love this channel. Thanks to god, I discovered this channel
@codewithantonio10 ай бұрын
So happy to hear that!
@GabrielAlves-ci3zr Жыл бұрын
Great video! i was struggling with back-end and this really cleared my mind. What would you recommend when it comes to testing? A video focused on TDD with typescript would be great :)
@codewithantonio Жыл бұрын
Happy you liked the video! I will perhaps make a more in-depth tutorial about testing in the future
@leavs Жыл бұрын
@@codewithantonio
@ekerekeprecious557111 ай бұрын
Anticipating this @@codewithantonio
@swastikpatro64368 ай бұрын
Hey Antonio, a video on TDD will be highly appreciated🙏❤
@user-ez5ch8qn3p Жыл бұрын
Thanks a lot Antonio for the video. Learnt few new things like no jwt, storing token in the cookie.
@codewithantonio Жыл бұрын
Glad you like it!
@attaullahsiddiqui39319 ай бұрын
Very good. Waiting for more videos like these for Angular, Node(advanced), Flutter
@sarfrazshah51583 ай бұрын
Excellent explanation!
@codewithantonio3 ай бұрын
Thank you!
@sarfrazshah51583 ай бұрын
@@codewithantonio Oh! can you please tell me what VS Code theme you use? I just loved it....
@codewithantonio3 ай бұрын
@@sarfrazshah5158 Monokai Pro!
@sarfrazshah51583 ай бұрын
@@codewithantonio Thank you Sir!
@chetanrana7778 Жыл бұрын
Excellent Tutorial
@codewithantonio Жыл бұрын
Glad you liked it
@MatiasNovillo18 ай бұрын
EXCELLENTE sir! Thanks!
@gaminghta333 Жыл бұрын
Great video - I love this video about nodejs typescript
@codewithantonio Жыл бұрын
Thank you a lot!
@ryanzhouff9 ай бұрын
Thanks for sharing this great video.Learned a lot.
@codewithantonio9 ай бұрын
Glad it was helpful!
@JamesVannordstrand11 ай бұрын
I love your stuff. Keep up the great work. You're an amazing teacher and these simple tutorials are awesome.
@amanmalik78111 ай бұрын
Thank You so much, really needed this
@codewithantonio11 ай бұрын
Glad it helped!
@arpan157 Жыл бұрын
Personally, I would not suggest it for beginners; there is little to no explanation and it might be quite daunting for those of you who are just getting started.
@L.K.82 Жыл бұрын
Very true. Thought exactly the same.
@Abu_Rayhan9 ай бұрын
I thought the same
@riyayadav84689 ай бұрын
I'm beginner but I understand pretty well I like it ❤
@omkarambure97798 ай бұрын
@arpan157 do you know any other good videos on express js?
@user-wr7ou8ih5s8 ай бұрын
But which is better ? This or the simple express.js
@mennatallakhougha86148 ай бұрын
Very simple and easy to follow along thank you amazing video
@codewithantonio8 ай бұрын
Glad it was helpful!
@OlDirtyBrewer6 ай бұрын
Great tutorial. For those that didn't follow it exactly, I had strict: true in my tsconfig.json. This caused TS to complain about the authentication controller file. user.authentication and user.authenticaion.salt could be null or undefined. To fix, just add a few more checks in: if (!user) statement. It should be something like: if (!user || !user.authentication || !user.authentication.salt) that solved it for me.
@mohammadaminreihani57043 ай бұрын
Such an amazing tutorial. Thank you Antonio! 😍👋
@Liam-vn1fp Жыл бұрын
Thanks for this USEFUL REST API GUIDE
@codewithantonio Жыл бұрын
You are most welcome
@gherardivictor5 ай бұрын
So helpful Antonio, you're so great. but remember that now body parser is deprecated
@markus_dev_cwb Жыл бұрын
Amazing API video. Very easy to understand and clean code to learn! Thanks Man!
@codewithantonio Жыл бұрын
Glad it was helpful!
@raiyanthedeveloper Жыл бұрын
Thanks a lot for explaining so quickly. Wating for your vidoes. Love from Bangladesh.
@codewithantonio Жыл бұрын
Glad you like it!
@ValdirCastaldelliJr6 ай бұрын
Hello Antonio, really nice video. i loved
@codewithantonio6 ай бұрын
Glad you enjoyed it
@mktNo1 Жыл бұрын
I'm a newbie. It's really helpful. Thank you so much.
@codewithantonio Жыл бұрын
Glad you like it!
@bartoszgauszka7021 Жыл бұрын
thanks for this tutorial, it made me a lot easier to setup TS with express and use it 😃😃
@codewithantonio Жыл бұрын
Glad you like it!
@muditkhanna81645 ай бұрын
great content with easy explanation.
@codewithantonio5 ай бұрын
Glad you think so!
@gopikrishnag41 Жыл бұрын
Very straight forward and easy to understand, thx
@codewithantonio Жыл бұрын
Glad you like it
@victorsmilyborgesalmonte841811 ай бұрын
Very cool the way you handle the router!! You got a like and a follow!
@lucasdamasceno7068 Жыл бұрын
great project. thanks bro, i gonna put this on my portfolio
@codewithantonio Жыл бұрын
Thank you! Glad it helped you!
@CliveStewart-bq3od Жыл бұрын
Would really want to see a guide to building a REST API with TypeScript + MYSQL(Larvel) + Authentication
@irvanmaulana130210 ай бұрын
omg I learned a lot from this video, thanks a lot!
@codewithantonio10 ай бұрын
Glad it was helpful!
@alimezghani9239 Жыл бұрын
Mate this is awesome
@codewithantonio Жыл бұрын
Thank you so much!
@stefanocons Жыл бұрын
Loved this tutorial! Thanks a lot man!
@codewithantonio Жыл бұрын
Glad you like it!
@aswarthanarayanareddyb17610 ай бұрын
Great Tutorial, thanks for nice tutorial 💌
@codewithantonio10 ай бұрын
You're welcome 😊
@razibulhossen9680 Жыл бұрын
Amazing wait for next video
@codewithantonio Жыл бұрын
Thank you a lot! New video is coming soon!
@hanifbahari6606 Жыл бұрын
amazing, easy to follow and pleasant to listen.
@codewithantonio Жыл бұрын
Thank you very much :)
@ImamNurArifinHA Жыл бұрын
Great video,, you explained it clearly,, i have subscribed
@codewithantonio Жыл бұрын
Thank you a lot!
@oscarwanga4453 Жыл бұрын
amazing work really helped me a lot. Thank you
@codewithantonio Жыл бұрын
Glad to hear that!
@K.Huynh.5 ай бұрын
thank you for sharing!
@codewithantonio5 ай бұрын
My pleasure!
@bassam.202311 ай бұрын
This really was a great tutorial. 😀🙏🏼 The front-end counterpart tutorial to this (React, Next, or HTML/JS) should be short and quick, and would be extremely useful. Thanks!
@SUNYBOI6 ай бұрын
If someone asks me why you are using typescript as the same api can be built using javascript only. Then what should I reply technically? @Antonio
@vincenzoriwu2998 Жыл бұрын
Thank you, very useful using ts
@codewithantonio Жыл бұрын
Glad it was helpful!
@hacksbsb Жыл бұрын
Wow this tutorial really saves me cause I have a interview about it. If you have time, could you please do a MEAN/MERN based on this tutorial?
@xuanthangle8207 Жыл бұрын
Your content is good, keep create more content about nodejs with TS but in the real life, it will be great
@codewithantonio Жыл бұрын
Thank you!
@naathan4455 Жыл бұрын
You saved my life. Thanks
@codewithantonio Жыл бұрын
Happy I helped!
@martinmendez69511 ай бұрын
Good video, I would recommend to use the command [ npx tsc --init ] instead of creating the tsconfig.js from scratch.
@thequang9234 Жыл бұрын
Do more backend tutorials !!
@codewithantonio Жыл бұрын
Will do in the future! Thank you for watching!
@Salah-YT Жыл бұрын
thank u so much
@codewithantonio Жыл бұрын
Happy to help
@Noritoshi-r8m Жыл бұрын
Great stuff! Many thx
@codewithantonio Жыл бұрын
Glad you like it!
@user-yn9yr8hq8v4 ай бұрын
Thanks very much ❤❤❤
@awesomeguy6427 Жыл бұрын
Can u please more videos on express Node backend and production deployment.
@codewithantonio Жыл бұрын
Thanks for the suggestion! I will look into it!
@roebienarnaiz Жыл бұрын
Great Video!
@codewithantonio Жыл бұрын
Thank you!
@virgineftw90139 ай бұрын
good stuff i like the fact that you used typescript in the backend , the only thing that i maybe not fan of is the naming for the files too many index.ts and file structure im kinda lost , maybe a sperated files models/controllers/routes would be nice. since the more complexity we add to a certain project, the more files we have, it would be chaos. it maybe comes back to personal preference idk. overall good job ❤🔥❤🔥
@thecodereviewer9 ай бұрын
Great great job! 😊
@peapuffer3514 Жыл бұрын
And just like that I completed the tutorial successfully. Thanks for the video
@codewithantonio Жыл бұрын
Glad it helped
@L.K.82 Жыл бұрын
At around minute 32 I get errors: user.authentication.salt, .password and .sessionToken are "possibly undefined". I checked my users.ts file and it seems to be exactly the same as yours. What do I have to do in order to make this error disappear?
@JonnyCage776 ай бұрын
One way woudl be to add an explicit guard check like so: if (!user || !user.authentication || !user.authentication.salt) { return res.sendStatus(400); }
@SanjayNG1255 ай бұрын
@@JonnyCage77i can't even save please help me...
@SanjayNG1255 ай бұрын
Bro did u fixed it if s how...??
@rima-t Жыл бұрын
Do we need the "mongoose.Promise = Promise;" line? and what does it do? thank you very much
@shueiyang6431 Жыл бұрын
Nice tutorial for this in typescript, for unknown reason the post is deleted, so i write again, haven't go throught it but just notice you still use bodyparser, since 4.0 express have already integrated it, so you don't need anymore and you can replace the middleware with express.json() :)
@igmtink5 ай бұрын
sir antonio can you make a masterclass for this, like "next-auth" like having a logic to implementing "email verification, password reset, otp, oauth provider, role base"
@mauricioferreyra4378Ай бұрын
thank you so much
@vitorrubenich3821Ай бұрын
Thanks!
@adamt41108 ай бұрын
create user returns 200. GOOD job!
@denysaheienko71777 ай бұрын
Great work, thank you @codewithantonio 🤗
@AndreSpecht10 ай бұрын
Amazing video. Could you show us how to deploy it properly? Like on Netlify. Also, are u planning a React course in the near future? Thnaks
@barcalover0169 ай бұрын
you cannot deploy server side applications like this API to netlify, unless you deploy it as serverless function. although you can easily deploy it to render. but render doesn't allow your server to run all the time it shuts down after 15s from last call, and it takes too long to restart and send back response when you call it again after 15 min. better alternative is vercel but you have to configure some files to be able to deploy an api to it.
@abenezermaru6276 Жыл бұрын
i watch your videos they well put together with advanced development practice but can you do a more in depth explanation tutorial for some us are not following at some instance
@phaminho63646 ай бұрын
thanks Antonio. i am beginner and i have a question I don't know what impact of mongoose.Promise = Promise;
@skbhati199 Жыл бұрын
excellent video I need videos for socials login🥰🥰
@codewithantonio Жыл бұрын
Thank you! If you are interested in NextJS, I have a couple of tutorials which do social login there
@bouabahmed3525 Жыл бұрын
Great video, thanks a lot
@codewithantonio Жыл бұрын
Thank you!
@pedroaviladressler31010 ай бұрын
do you have any recomendations on where do I learn the basics os authentication and password encrypting?
@temporarysoul11675 ай бұрын
If anyone facing bad req error try changing condition For existing user check we have to write condition like: if existing user.length > 0 ....
@jorgerenteral Жыл бұрын
Awesome man, new follower, and if you create a paid course, I'm in for buying it 🤘🏽
@codewithantonio Жыл бұрын
Very happy you like my tutorial! :)
@IngPedroAraujo11 ай бұрын
Thanks for sharing your knowledge.. I've got an error on the tsconfig.ts file the property "moduleResolution": "node",
@jasonterry93437 ай бұрын
^ The only one of these comments actually following along. His TS Config is broken....
@bayandamabuza6587 Жыл бұрын
I'm stuck on "user.authentication possibly 'undefined' " it shows an error
@gcma199911 ай бұрын
Make sure your "tsconfig.json" filename is spelled correctly.
@akshaysrivastava43048 ай бұрын
Hi there ! I would like to address a bug which I encountered while following this tutorial. If anyone is getting the following error in their app: Error: Cannot find module 'helpers' Require stack:.... Then you need to fix your imports from this - import { authentication, random } from "helpers"; to this import { authentication, random } from "../helpers"; For these '../' I spend a lot of time debugging. Thanks for the tutorial Antonio.
@spalk125 Жыл бұрын
Hello Antonio and thank you for the great content. I have watched until 33:41 (end of authentication) and I have some questions. 1) Isn't it better to use bcrypt instead of crypto for hashed passwords? 2) Isn't it better to use a .env file to save your passwords instead of using them directly in code? 3) Isn't it safer to use jwt instead of this session token? 4) Shouldn't the cookie and the token have expiration dates? 5) Like this is the authentication safe enough to use against common hacking attacks?
@caedencode Жыл бұрын
It is better, Its safer and JWT Is better and cookies do have expiration dates.
@rohitcpathare Жыл бұрын
This is great! In the future can you also make a video using MongoDB with GraphQL?
@adarshrathi8265 Жыл бұрын
i confuse only where you teach about owner , and tell about delete feature, because it not delete, so how I delete
@frontend_ko Жыл бұрын
very nice video, thanks
@codewithantonio Жыл бұрын
Glad you liked it!
@juanantoniovivaldy11 ай бұрын
what is the differences between httpServer.listen() and app.listen(), the first is using http modules, and express framework?
@everbliss7955 Жыл бұрын
Tutorial is great! Thanks alot. Just some thing to note, I find that you sometimes just say WHAT you are doing but you don't explain WHY.
@codewithantonio Жыл бұрын
Thanks for the tip!
@h3nggg19 күн бұрын
I have a problem with the Users, I can't get the response back with Get, Delete and Update. Any solution to check?