Learn Just Enough Fastify to be Productive

  Рет қаралды 18,869

TomDoesTech

TomDoesTech

Күн бұрын

Repository: github.com/TomDoesTech/just-e...
0:00 Intro
1:46 The basics
4:17 Graceful shutdowns
8:41 Plugins
13:13 Decorators
19:18 Lifecycle hooks
22:27 Validation
25:51 Bonus
29:24 Outro
🌎 Follow me here:
Discord: / discord
Twitter: / tomdoes_tech
Facebook: / tomdoestech​
Instagram: / tomdoestech​
TikTok: / tomdoes_tech
☕ Buy me a coffee: www.buymeacoffee.com/tomn

Пікірлер: 52
@anfytrion
@anfytrion Сағат бұрын
I am convinced to use Fastify in general👌
@akay64x2
@akay64x2 3 ай бұрын
Man I love your approach, like you allow things to stumble and get messed up before fixing it... That is SO much better than just giving the right answer.
@bikashkalita8712
@bikashkalita8712 Жыл бұрын
Great video. I got to learn so much from this short tutorial. Could you please make a video on steps a beginner like me to should follow to get a grasp on backend development using fastify.
@IncredibleGilgitBaltistan
@IncredibleGilgitBaltistan Жыл бұрын
The course is awesome thanks 🎉
@jaymartinez311
@jaymartinez311 2 ай бұрын
You’re the only person that kept it simple and didn’t use the million and one ways to do this! Thank you a million! People over complicate things waaay to much and i just want to fetch some data and be done with it. I’m not trying to get to fancy and if i am ill use dotnet or axum or anything else. One thing i’ve been searching in the js/ts ecosystem is a folder structure where you extract the callback handlers and not just extract the fastify.get etcs (crud stuff) but with named functions like a normal person. 😂 The messy single file stuff makes my adhd act up 🤪 so a video on a folder structure would be greatly appreciated. Have of what you did i figured out just me saying around because the docs weren’t helpful. Not because everything isn’t there but to me it’s how you present especially the typescript code. This video would be great to update fastify’s typescript docs. They have a schema typing thingy but i just want the basic how to in typescript and this would be a solid contribution to the docs! Awesome video and thank you! following and liking 💪🏾. Oh Drizzle ORM fastify maybe next? 🤔
@KrishnaDasPC
@KrishnaDasPC 3 ай бұрын
Great tutorial. Going to start my next application with it.
@user-js7ig5hn4p
@user-js7ig5hn4p Жыл бұрын
It would be very interesting to see the swagger setup for fastify A lot of articles that I have seen seem obvious and optimal to me (a lot of boiler plate)
@case6339
@case6339 Жыл бұрын
Thank you! That was the most succinct and on point Fastify tutorial I could find on the web. Now I need to find one explaining canonical architecture and folder structure used in professional settings.
@TomDoesTech
@TomDoesTech Жыл бұрын
I have a shorts video about the file structure I use
@case6339
@case6339 Жыл бұрын
@@TomDoesTech Thanks, found it: "How I structure my backend (kzfaq.info5n_xq-iwnrY)"
@jaymartinez311
@jaymartinez311 2 ай бұрын
@@case6339Do you have a github repo link maybe to look at the folder structure more closely?
@peroforrr7663
@peroforrr7663 Жыл бұрын
you are amazing, keep going
@bangunny
@bangunny 11 ай бұрын
Thank you, could you make a video tutorial for trpc and fastify ?
@yashkc20251
@yashkc20251 9 ай бұрын
Thank you for making this. It was really informative. Btw, what is the name of your vscode theme
@adriantworek1057
@adriantworek1057 Жыл бұрын
Hi Tom, is there a way to somehow connect Next-Auth with standalone Express/Fastify server that will be receiving session object with middleware? I do know T3 stack is awesome, but if an application is about to grow, then maybe having separate backend would be a better solution?
@mike6715b
@mike6715b Жыл бұрын
Have you thought about making a fastify microservice video? Would love to see that
@TomDoesTech
@TomDoesTech Жыл бұрын
Nah, in my mind they don't really have anything to do with each other. Microservices is an architecture and what an API in that architecture is build with is kinda irrelevant. If you know how to build a service with Fastify and you know how to build a microservice arch, you can build microservices with Fastify
@khashe
@khashe Жыл бұрын
Hey Tom, have you ever used Nestjs and have any thoughts on it? Been playing around with it and it's pretty tightly coupled with Fastify.
@TomDoesTech
@TomDoesTech Жыл бұрын
Yeah I do use Nest but honestly I wouldn't start a new project with it. It's just a lot of boilerplate and I don't think the advantages that it comes with are worth it for me
@user-ud2vq1nr1e
@user-ud2vq1nr1e 7 ай бұрын
I tried the TS version. It frankly seemed a big headache.. I ll reconsider that I think it's going smooth for you
@allisfehr
@allisfehr Жыл бұрын
I don’t know how you’re able to jump from one technology to the next. I am still learning T3, let alone still getting experience with React/Typescript/JavaScript /random packages in general. Difficult to move on to something else without forgetting the last thing I’ve been trying to learn. Are you knowledgeable in creating recursive functions? Namely for typing, mapping, (& possibly validating via zod) recursive Prisma models.
@TannerBarcelos
@TannerBarcelos Жыл бұрын
Experience helps learn new things relating to what you already know. So, if you know JavaScript and express, as well as about REST and api design, then fastify is easy because you know what an api is, what they do etc. you’d just learn how the framework does it. It’s hard to make that switch in mentality - I even struggle with it. But, if you think of it as a different tool for doing the same thing you already know, then it’s easier
@sourishdutta9600
@sourishdutta9600 Жыл бұрын
Can you build a large scale application with trpc ?? Like multi tenant application, complex data query form rpc to another rpc, execution context. And also what are the limitations than using normal rest and graphql.
@TomDoesTech
@TomDoesTech Жыл бұрын
I could but I don't really like making videos that cover so many topics. Is there anything specific that you want to know?
@FlowerNewton
@FlowerNewton Жыл бұрын
@@TomDoesTech any chance of covering how to deploy the T3 stack (which features TRPC) on AWS rather than vercel? E.g. using lambdas for TRPC
@user-cs2og9cc1c
@user-cs2og9cc1c Жыл бұрын
what's your vs code theme
@io_inc
@io_inc Ай бұрын
i wish there was someone to help me build a couchdb plugin
@fnx4518
@fnx4518 Жыл бұрын
Hi Tom, what vscode theme are you using?
@sbcar824
@sbcar824 Жыл бұрын
Hi @fnx, did you find the theme?
@vitaliiboichuk6390
@vitaliiboichuk6390 Жыл бұрын
@@sbcar824 it's bearded theme monokai black
@rockNbrain
@rockNbrain Жыл бұрын
Hey Tom, do you feel that fastify is really much faster than express ? or it should not be consider the best part of fastfy at all ... and maybe all ecosystem and TS suport is the real deal ?
@TomDoesTech
@TomDoesTech Жыл бұрын
I'm not sure about speed to be honest and I don't really care that much. The real selling point for me is the hooks, decorators, ecosystem and overall code quality
@rockNbrain
@rockNbrain Жыл бұрын
@@TomDoesTech Nice, tks bro
@IncredibleGilgitBaltistan
@IncredibleGilgitBaltistan Жыл бұрын
How are you installing these packages? I'm so confused.
@TomDoesTech
@TomDoesTech Жыл бұрын
What do you mean? Use a package manager like yarn or npm
@IncredibleGilgitBaltistan
@IncredibleGilgitBaltistan Жыл бұрын
@@TomDoesTech means you didn't used any commands on the screen
@Muhammed-nani964
@Muhammed-nani964 Жыл бұрын
does it have , all express package support and is it better than nest js ??
@TomDoesTech
@TomDoesTech Жыл бұрын
What do you mean by npm package support? It women stop you from installing NPM packages. Sorry not sure how to answer that question. You can't compare it to Nest, you can use Fastify with Nest but I don't like Nest.
@Muhammed-nani964
@Muhammed-nani964 Жыл бұрын
@@TomDoesTech I mean all express packages ! Does it have compatibility with all express packages or !?
@TomDoesTech
@TomDoesTech Жыл бұрын
@@Muhammed-nani964 No, you can't use express packages. Fastify has it's own ecosystem
@pawan29121991
@pawan29121991 Жыл бұрын
how can we move/migrate hapi plugins to fastify plugin
@TomDoesTech
@TomDoesTech Жыл бұрын
Refactor your code? I don't know
@Fizzify
@Fizzify Жыл бұрын
What theme are you using?
@nexxel
@nexxel Жыл бұрын
Hi Tom there's a typo in the title
@TomDoesTech
@TomDoesTech Жыл бұрын
Of course there is :facepalm, thank you!
@euanmorgann
@euanmorgann Жыл бұрын
I am creaming for more Fastify content
@TomDoesTech
@TomDoesTech Жыл бұрын
I get it
@TomDoesTech
@TomDoesTech Жыл бұрын
I read this comment to my wife, she laughed :)
@euanmorgann
@euanmorgann Жыл бұрын
@@TomDoesTech At least I've made one woman laugh this valentines day 😂 my partner... not so much
@howuseehim
@howuseehim 10 ай бұрын
i can't make the vies plugin works i am gettin reply.view is not a function
@TomDoesTech
@TomDoesTech 10 ай бұрын
Did you register it before you tried to use it?
@user-yv3jo1lh6u
@user-yv3jo1lh6u 2 ай бұрын
Better then Express. But still not simple and good (in general) as FastAPI In the end I personally prefer Python over TypeScript for build Backend APIs
Test your Fastify REST API With Node Tap
34:14
TomDoesTech
Рет қаралды 7 М.
Learn Just Enough Git to be Productive
19:41
TomDoesTech
Рет қаралды 2,3 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 22 МЛН
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 59 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27
The Hidden Cost Of GraphQL And NodeJS
28:35
ThePrimeTime
Рет қаралды 183 М.
Build an SQL Agent with Llama 3 | Langchain | Ollama
20:28
TheAILearner
Рет қаралды 2,3 М.
Fastify Course 🚀 The Performant Node.js Web Framework
36:30
Build a RESTful API with Fastify, Prisma & TypeScript
1:21:35
TomDoesTech
Рет қаралды 59 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 457 М.
How you start writing LiveView
41:32
Andrew Stewart | src_rip
Рет қаралды 10 М.
Building a modular monolith with Fastify - Matteo Collina, Node Congress 2023
20:49
JavaScript Conferences by GitNation
Рет қаралды 9 М.
Build a REST API with Node.js, Express, TypeScript, MongoDB & Zod
2:09:19
Средний палец и собака 🤯
0:25
FATA MORGANA
Рет қаралды 3,6 МЛН
Яйца мою 🥚🤣
0:37
Dragon Нургелды 🐉
Рет қаралды 981 М.
ПРЕДСКАЗАТЕЛЬ БУДУЮЩЕГО
1:00
КиноХост
Рет қаралды 4,4 МЛН
БОЛЬШОЙ ПЕТУШОК #shorts
0:21
Паша Осадчий
Рет қаралды 1,8 МЛН