finally a tutorial that doesn't leave you hanging on getting the fuller pic for proper type safety and production level usage. Thanks Tom
@basiccoder2166 Жыл бұрын
Watch entire video without getting bored or distracted. Beautifully explained
@Skylla543 жыл бұрын
I did a 40 hours node js course. These tutorial are just amazing to keep all the concepts and techniques fresh for my next Hackathon. 🤤 And perfect 4 dinnertime :)) 🍖
@GeorgiosAmsterdam5 ай бұрын
Looks like I finally found the video that I need, and for the first time I see an instructor using YARN..... never a break.
@MrKeepItTrill2 жыл бұрын
Came with the intention of skimming this just to see what I need to do to get Express working with TS (turns out not much). Left with one of the best and clearest introductions / refreshers on Express in general that I've ever seen.
@TomDoesTech2 жыл бұрын
So glad you liked it :)
@mizouhamza32442 жыл бұрын
I recommend to any new comer to Nodejs with Express. This video is what you need to start and get on your feet, personally I definitely enjoyed it.
@angrysmilex2 жыл бұрын
28:25 - Request & response generics - YOY!! I finally find this useful and simple solution
@gosnooky Жыл бұрын
NestJS is the goat. Not to confuse with NextJS, the React framework. Some people hate on it because it's TS first and feels a lot like Java/Spring or Angular, but those are both good things in my book because on the emphasis on type-safety and modularity.
@TomDoesTech Жыл бұрын
Yeah, not a fan of NestJS
@7MaticCode10 ай бұрын
This is the best tutorial for express with typescript. Thank you for this tutorial I learned a lot
@Creamworks3 жыл бұрын
Fantastic video! I'd also love to see a deep dive tutorial on Express + Mongoose with TS (file structure, strict typing etc.).
@jereramirez74332 жыл бұрын
Tom, this is so helpful! Im coming from Java-Spring stack and this is helping me so much to understand what I need to do to work as I used to. THANK YOU!
@stijnschuurman93473 жыл бұрын
Thanks Tom! I was confused with the `app.use(express.json())` because for some reason it did not function as it should for certain versions. Explained the middleware part really good. Thanks a lot :)
@chiragsharma47992 жыл бұрын
github.com/chiragmehta900/node-typescript-boilerplate-postgres Hey guys, try out this node js typescript boilerplate Please stare at this repository if you like this.
@nextdev36372 жыл бұрын
Wow, I was searching for it since 1 hour.
@josephjoey39043 жыл бұрын
Great work Tom. I have gotten the hang of TS with React but not much on the back end side
@vilijanac3 жыл бұрын
It is itself an fake back end side. Client needs at the front end needs to present. Receives only string of text. Most web browsers will reject as an web page.
@josephjoey39043 жыл бұрын
@@vilijanac wtf u talking about?
@postgres2269 Жыл бұрын
Thanks a lot for sharing this great knowledge for free. I never thought I would learn many new things from you.
@oz45492 жыл бұрын
underrated channel
@arberi993 жыл бұрын
Thank you for this amazing video!
@adventurer23952 жыл бұрын
You’re a good teacher, and this complements your other API video that had a faster pace. Since you’re using TS, it would be awesome to see an object-oriented API.
@TomDoesTech2 жыл бұрын
Thank you :) Yeah I will think about an OOP approach, I do prefer more functional programming though.
@jessejulian9069 Жыл бұрын
@@TomDoesTech Whats the difference between the two if i may ask? Is it simply receiving and returning JSON?
@TomDoesTech Жыл бұрын
@@jessejulian9069 There's a lot different, It will just confuse you if I try explain it in a comment. There should be lots of videos on YT explaining it
@martinlupa8692 Жыл бұрын
Great video! Thank you!
@k12i2 жыл бұрын
Thank you Tom for the amazing explanations! I have learnt heaps just from this tutorial :)
@TomDoesTech2 жыл бұрын
Great to hear!
@taosade3 ай бұрын
what's the extension for such a cool terminal in vscode?
@tadeuszjiwu2552 жыл бұрын
Thank You Tom, great tutorial!
@mossaabkanzit94032 жыл бұрын
That was really instructional! Maybe in a future video you can cover clean / hexagonal architecture with express and typescript. Thanks for the video and looking forward to more videos.
@TomDoesTech2 жыл бұрын
Thanks for the suggestion. I will look into hexagonal architecture and see if it's something I'd make a video out of
@jamesperalta35 Жыл бұрын
great work!
@true_visual9 ай бұрын
I am close to complete my Angular course at the moment. I will soon need to learn Express to come closer to MEAN and I am so excited. Can someone learn Express in 40 minutes though? It seems short unless it's really that quick to learn Express! Thank you very much for this!
@TCErnesto2 жыл бұрын
11:36 is it needed to type the parameters? TypeScript is pretty good at inferring types. In this case, thanks to the signature of `get`, VSC and we know the types of `req` and `res`
@2gbeh7 ай бұрын
Let's go 👍
@codforc Жыл бұрын
thank you!
@pheonixking12342 жыл бұрын
Very good tutorial!
@marianofarace3082 жыл бұрын
Hi Tom, I'm getting an error on every empty bracket here "req: Request", Don't use `{}` as a type. `{}` actually means "any non-nullish value". How do you deal with that?
@Kamilek962 жыл бұрын
Great tutorial. Could you advise me, which of your tutorial should I take next, if i interested in backend stuff? Many thanks =)
@TomDoesTech2 жыл бұрын
You could try building the auth API kzbin.info/www/bejne/p6rPeJShnpV9nrs
@k12i2 жыл бұрын
Hey Tom, what did you use for formatting the code with auto save? Is it prettier?
@TomDoesTech2 жыл бұрын
Yeah prettier
@rathan2352 жыл бұрын
well explained!
@jessejulian9069 Жыл бұрын
Hey Tom, what script would we use to run the server in production?? I'm referring to the scripts we add within the package.json file in order to run our server. I've watched a few of your videos on Express with TypeScript but I've only seen you set a script for Development
@TomDoesTech Жыл бұрын
What script?
@MassGueye-sr4kj Жыл бұрын
what was that technic names with middleware
@devloperadda13503 жыл бұрын
Thanks
@mybuddy11 Жыл бұрын
could you please a lecture on micro service with express -typescript?
@logarithm02 жыл бұрын
Top
@savithadatchu15342 жыл бұрын
Hey Tom, What is the use of express interfaces, when even without them the inbuilt functions of req and res are accessible directly.
@TomDoesTech2 жыл бұрын
If you pass req and res to a controller for example, in the controller the interfaces are not accessible, so explicit types are helpful
@valentinussofa41352 жыл бұрын
Thanks for this tutorial. I want to ask, Why you don't use nodemon package?
@TomDoesTech2 жыл бұрын
don't need it
@editingtuto1.011 Жыл бұрын
I Want to learn session management with typescript.
@filipedonatti88722 жыл бұрын
could explain what is .locals at 28:50 ?Maybe explain a little further about its usability if you don't mind
@TomDoesTech2 жыл бұрын
The res.locals object has properties that are local variables within the response, and will be available in templates rendered with res.render
@howuseehim Жыл бұрын
How do you build for production? 😢
@talhakhadim111 Жыл бұрын
which tool are you using for auto complete in cli?
@TomDoesTech Жыл бұрын
I think it's zsh-autocomplete
@coderboysobuj Жыл бұрын
How to i deploy express typescript project on cpanel?
@yoman94463 жыл бұрын
Thanks a lot! Can you do a tutorial on using NextJS with custom express backend with typescript?
@HologramJay2 жыл бұрын
Thanks for the tutorial, Tom. It was really helpful. I just had a quick question. When typing the Request object, how would we access ResBody? I'm trying to set its type to a string, but I can't seem to figure out how to log it out like I can with req.params, req.body, and req.query.
@indigosay3 жыл бұрын
You should teach us to extend Request witn additional properties, bro
@Randomuser212653 жыл бұрын
Where is the github link?
@TomDoesTech3 жыл бұрын
I haven't added it to GitHub because there was no real working code. I can make a repo with all the examples if that would help
@Euquila2 жыл бұрын
Personally, I use Typescript very minimally. Like, I would never type Request, Response, and NextFunction... that would annoy me as all hell. I might type out the shape of an object or props or something though
@TomDoesTech2 жыл бұрын
That's the beauty of TypeScript, it's more opt-in. I usually don't add types for everything, especially if TS knows the type implicitly. However, I add more types in these videos because I want to stress how to find the types that can be used by going into the module and seeing what's exported.
@IkraamDev3 жыл бұрын
My boss told me Golang is a better tool than NodeJS. It would be interesting if you learnt Go and made a video like this in Go.
@TomDoesTech3 жыл бұрын
For what specifically is Go better than Node.js? yeah, I've wanted to learn Go for ages but have only dabbled in it a little bit.
@kalush812 жыл бұрын
There is almost no typescript involved in this video.
@TomDoesTech2 жыл бұрын
I don't think stuffing types in where they don't improve the DX is an appropriate use of TS, therefore there is enough TS in this video. If you disagree, that's fine but welcome to tech where nobody agrees on anything.
@kirarevcrow3 жыл бұрын
You barely talked about the error handling.
@TomDoesTech3 жыл бұрын
I talked about it enough in terms of Express, since it's just normal Node error handling.
@tejasjani2544 Жыл бұрын
Js realised it's mistake and want be a java
@TomDoesTech Жыл бұрын
lol what?
@mjerez6029 Жыл бұрын
Is 2023 last thing you should do is express, there are waay better alternatives. Express is just awful
@TomDoesTech Жыл бұрын
What if you are interviewing for your dream job and they have a large Express app and expect you to know how to use it? Probably pretty import to learn it.
@TomDoesTech Жыл бұрын
Otherwise I'd agree, I always start new projects with Fastify
@aayushdhakal41422 жыл бұрын
No explanation at all. Just keeps on writing code, very disappointing.
@TomDoesTech2 жыл бұрын
Sorry, I'll give your money back
@aayushdhakal41422 жыл бұрын
@@TomDoesTech give my time back
@TomDoesTech2 жыл бұрын
@@aayushdhakal4142 I didn't strap you down and make you watch it
@aayushdhakal41422 жыл бұрын
@@TomDoesTech you put it on youtube to watch
@TomDoesTech2 жыл бұрын
@@aayushdhakal4142 Exactly, no restraints involved