finally a tutorial that doesn't leave you hanging on getting the fuller pic for proper type safety and production level usage. Thanks Tom
@Skylla542 жыл бұрын
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 :)) 🍖
@basiccoder216611 ай бұрын
Watch entire video without getting bored or distracted. Beautifully explained
@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.
@gosnooky11 ай бұрын
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.
@TomDoesTech11 ай бұрын
Yeah, not a fan of NestJS
@angrysmilex2 жыл бұрын
28:25 - Request & response generics - YOY!! I finally find this useful and simple solution
@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.
@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!
@josephjoey39043 жыл бұрын
Great work Tom. I have gotten the hang of TS with React but not much on the back end side
@vilijanac2 жыл бұрын
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.
@josephjoey39042 жыл бұрын
@@vilijanac wtf u talking about?
@GeorgiosAmsterdam3 ай бұрын
Looks like I finally found the video that I need, and for the first time I see an instructor using YARN..... never a break.
@7MaticCode8 ай бұрын
This is the best tutorial for express with typescript. Thank you for this tutorial I learned a lot
@nextdev36372 жыл бұрын
Wow, I was searching for it since 1 hour.
@arberi993 жыл бұрын
Thank you for this amazing video!
@oz45492 жыл бұрын
underrated channel
@postgres2269 Жыл бұрын
Thanks a lot for sharing this great knowledge for free. I never thought I would learn many new things from you.
@martinlupa8692 Жыл бұрын
Great video! Thank you!
@2gbeh5 ай бұрын
Let's go 👍
@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
@true_visual7 ай бұрын
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!
@pheonixking12342 жыл бұрын
Very good tutorial!
@jamesperalta2870 Жыл бұрын
great work!
@logarithm02 жыл бұрын
Top
@codforc Жыл бұрын
thank you!
@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
@tadeuszjiwu255 Жыл бұрын
Thank You Tom, great tutorial!
@k12i2 жыл бұрын
Thank you Tom for the amazing explanations! I have learnt heaps just from this tutorial :)
@TomDoesTech2 жыл бұрын
Great to hear!
@eyalsolomon16822 жыл бұрын
Nice one ! would be better if you had more focus on typescript nice example about Request generics
@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
@taosadeАй бұрын
what's the extension for such a cool terminal in vscode?
@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`
@k12i2 жыл бұрын
Hey Tom, what did you use for formatting the code with auto save? Is it prettier?
@TomDoesTech2 жыл бұрын
Yeah prettier
@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?
@devloperadda13503 жыл бұрын
Thanks
@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?
@yoman94463 жыл бұрын
Thanks a lot! Can you do a tutorial on using NextJS with custom express backend with typescript?
@mybuddy11 Жыл бұрын
could you please a lecture on micro service with express -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.
@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
@indigosay2 жыл бұрын
You should teach us to extend Request witn additional properties, bro
@MassGueye-sr4kj Жыл бұрын
what was that technic names with middleware
@valentinussofa41352 жыл бұрын
Thanks for this tutorial. I want to ask, Why you don't use nodemon package?
@TomDoesTech2 жыл бұрын
don't need it
@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?
@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
@editingtuto1.011 Жыл бұрын
I Want to learn session management with typescript.
@howuseehim Жыл бұрын
How do you build for production? 😢
@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.
@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
@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.
@kirarevcrow2 жыл бұрын
You barely talked about the error handling.
@TomDoesTech2 жыл бұрын
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