Typescript API in NodeJS / Express in Depth [Part 1]

  Рет қаралды 10,783

The Nerdy Canuck

The Nerdy Canuck

Күн бұрын

Learn how to create an API using Node JS, Typescript AND Express in 2024. I've also included testing which is something I haven't done in the past!
I hope this helps!
Github: github.com/joe...
Jest Docs: jestjs.io/docs...
Music by Tesko / prod. THXMOS:
@prod.thxmos6970
Support
Like this video? You can show your support by buying me a coffee ☕❤️: www.buymeacoff...
Socials
Github: github.com/joe...
Twitter: / thenerdycanuck
About The Channel
The knowledge that I share here is mostly from my personal experiences. I wouldn't say I'm a 20 year professional, rather I am just a DevOps / Software Engineer with a lot of experience who enjoys teaching what I know in my spare time. I believe that sharing some of my basic knowledge on this platform can help others get started. There are many ways to program something and the videos you see here are my take on the NodeJS / Typescript / and sometimes Unity world. If this channel helps you learn, or helps you think differently then my job is done 😊.
#typescript #nodejs #testing

Пікірлер: 28
@rayrobinsongonzaga9681
@rayrobinsongonzaga9681 Ай бұрын
The perfect tutorial I've been looking for! Not just teaching the technologies but most especially best practices, testing, and error handling! Thank you! Make more videos please! Subscribed!
@mallorylaforet6419
@mallorylaforet6419 7 ай бұрын
Glad you're making videos again. I enjoy your content!
@TheOnlyIchiban
@TheOnlyIchiban 27 күн бұрын
This is seriously a fantastic tutorial, i love the in depth explanations on what you're doing and the reasons, it's really important to understand. This was exactly what I needed, awesome work
@AndrewEddie
@AndrewEddie 7 ай бұрын
Great update. I shot you a pull request that shows you how to use the Rest Client plugin available in VSCode as an alternative to Postman. Also happy to do an example for project based snippets if you are interested (you could, as a silly example, set up a snippet to give you boiler-plate code for any middleware function).
@TheNerdyCanuck
@TheNerdyCanuck 7 ай бұрын
I like that a lot! Looks really easy to define some routing tests (instead of postman) I think I'll merge it in for people to try. As for snippets, I'm saving those for other videos as things get more complex.
@AndrewEddie
@AndrewEddie 7 ай бұрын
@@TheNerdyCanuck thanks for that!
@JacquesOP
@JacquesOP 3 ай бұрын
Thank you Sir that was exactly what I was looking for. Simple and educative!
@beetpalm
@beetpalm 3 ай бұрын
i love it, i'm from thailand I'm just starting to learn how to program. I really enjoy your videos.
@lukaslearning3549
@lukaslearning3549 5 ай бұрын
I hope you will cover Jest as well. I tried it before but I got trouble with type-checking inside test files.
@TheNerdyCanuck
@TheNerdyCanuck 3 ай бұрын
I am working on some test stuff now
@csguru8211
@csguru8211 5 ай бұрын
Thanks a lot for providing such a quality content
@pdsavard
@pdsavard 15 күн бұрын
Thanks for the great video. Got a small question, in the Cors Middleware, I can't add the return res.status(200).json({}) without getting a typescript error on the application.use(corsMiddleware). error: No Overload matches this call... Any idea?
@TheNerdyCanuck
@TheNerdyCanuck 8 күн бұрын
No overload matches makes me assume the function itself isn't defined properly. Still having this issue?
@pdsavard
@pdsavard 8 күн бұрын
@@TheNerdyCanuck solved! its because in typescript I can't do return res.status(200)...... something do not like that. I need to set the status then do a "empty" return;
@TheNerdyCanuck
@TheNerdyCanuck 8 күн бұрын
@@pdsavard strange, it should let you return but I'm happy you got it to work!
@SayfSentinel
@SayfSentinel Ай бұрын
This way better than a Netflix series
@TheNerdyCanuck
@TheNerdyCanuck Ай бұрын
Appreciate that
@daz1uk
@daz1uk 5 ай бұрын
Great video 👍
@aliahmadi8816
@aliahmadi8816 3 ай бұрын
@TheNerdyCanuck Thank you for the content, I get an error if i try to log any of the config variables, I have to import them individually for it to work, what i mean is doing: import './config/config'; console.log(DEVELOPMENT) will throw an error that Cannot find name 'DEVELOPMENT Thank you!
@TheNerdyCanuck
@TheNerdyCanuck 3 ай бұрын
Its a setting in the config file to check the NODE_ENV env var
@trieunguyentuan4589
@trieunguyentuan4589 7 ай бұрын
why using package cors. Thanks
@TheNerdyCanuck
@TheNerdyCanuck 7 ай бұрын
You can use a package for it for sure, it's probably easier
@attaullahsiddiqui3931
@attaullahsiddiqui3931 2 ай бұрын
Why are you not making more videos?
@TheNerdyCanuck
@TheNerdyCanuck 2 ай бұрын
I would like to make more! I am working on some testing ones right now, it's just hard to justify the time with the kids atm :)
@attaullahsiddiqui3931
@attaullahsiddiqui3931 2 ай бұрын
@@TheNerdyCanuck Cool. Plz make more vidoes on NodeJS Angular GraphQL
@atnguyen-qg6ze
@atnguyen-qg6ze Ай бұрын
Why can logging be used in handlelogging middleware?
@TheNerdyCanuck
@TheNerdyCanuck Ай бұрын
The middleware is designed to add logging to every request instead of using a third party library.
@atnguyen-qg6ze
@atnguyen-qg6ze Ай бұрын
@@TheNerdyCanuck thanks
Typescript API Routing with Decorators! [Part 2]
17:26
The Nerdy Canuck
Рет қаралды 2,4 М.
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 118 МЛН
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 46 МЛН
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
Express JS with TypeScript - Setup, Examples, Testing
1:20:13
Anson the Developer
Рет қаралды 36 М.
How To Use TypeScript With Express & Node
17:05
Colt Steele
Рет қаралды 72 М.
Node.js Doesn’t Suck Anymore
16:59
Web Dev Simplified
Рет қаралды 121 М.
Ryan Dahl introduces JSR at DevWorld 2024
29:13
Deno
Рет қаралды 112 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 56 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 531 М.
TypeScript, Node, esbuild, Commander... Let's build a CLI!
1:10:21
Matt Pocock
Рет қаралды 37 М.
Young People Try Windows XP
14:19
Linus Tech Tips
Рет қаралды 1,4 МЛН
RESTful API using Node JS, MongoDB & Typescript IN-DEPTH [2022]
49:06
The Nerdy Canuck
Рет қаралды 56 М.
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34