Це відео не доступне.
Перепрошуємо.
How To Build Your First TypeScript Project - TODO List Application
Вставка
- Опубліковано 15 сер 2024
- It is finally time that I create a full TypeScript project. In this video I show you how to create an entire TODO list application in TypeScript. I also show you how to get started with TypeScript in both a basic and advanced way.
📚 Materials/References:
GitHub Code: github.com/Web...
Node Download Video: • Your First Node.js Web...
Optional Chaining Video: • 5 Must Know JavaScript...
Optional Chaining Article: blog.webdevsim...
Should You Use TypeScript Video: • Is JavaScript Dead?
🌎 Find Me Here:
My Blog: blog.webdevsim...
My Courses: courses.webdev...
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/Web...
CodePen: codepen.io/Web...
⏱️ Timestamps:
00:00 - Introduction
00:49 - How To Install TypeScript
02:10 - Basic TypeScript Setup
06:01 - Bundler TypeScript Setup
10:30 - How To Build The Todo List App
#WebDevelopment #WDS #TypeScript
Hey Kyle, great to see you covering some TypeScript. I would definitely be interested in future videos if you decide to cover more advanced topics. Cheers!
This was a perfect intro tutorial for a TS project. I followed along the tutorial, and then wrote down the steps I took. The next day I created the tutorial based on these steps. Then the next day I created it from scratch. Great learning experience. Thanks!!
dis is da weh
doing thing from memory is really good, makes you remember it for a long time when we recollect and do things
great tutorial. please more typescript ones, for example how to properly define interfaces, types and set up definition files. also please try svelte (with vite or sveltekit)
You're such a great teacher. Highly appreciate your content and ability to explain things so simply.
You just made me love typescript 😂, please do a playlist on it for beginners
A video about all of the configs would be nice.
I have just planed to learn typescript. and u made a video on typescript 👏
When you're going to give guitar lessons?
nice! an advanced typescript project would be awesome. also a bigger reactjs typescript project would be sweet! thx
agree!
Yay I got all the way through it this time! I'm so pumped that I was able to do this so fast. I've been working hard to get this far. Thanks Kyle. You rock man.
Really great simple hands-on application of typescript for practice. One thing I noted, when the browser threw an error trying to run module syntax, it was actually because you didn't specify the type of the script as "module" in your script tag
Or just use npm init vite and select vanilla-ts ⚡
vite is 🔥
vite is really cool
The best!
I switched from webpack to vite, and I never want to go back. I tried Svelte for my portfolio development, and I don't want to change that. Some tools are overrated, but many are amazing.
Vite is garbage. for couple seconds faster compiling time, you have to always and always configure the module bundler.
folder structure is also inconvenient.
and lasty, why the hell I need to install module bundler plugin to add PWA functionality to my project? you can literally have PWA on vanilla js project without any kind of plugin.
it is fast because it has nothing inside of it and you have to reinvent the damn wheel.
Loving these project tutorials. I am learning both React and TypeScript and your videos have been gold. The fast pace challenges me to keep up. Thank you for the clear and concise content. 👏
9:24 wait hold the frickin' phone for a second. how does NOT give an error? the dist folder does not exist nor does the index.js file. what is this magic?
I agree. Even when it is manually created tsc doesn't spit the index.js out into the dist folder. So how is he getting it to work??
I resolved by Ctrl+C to cancel in terminal, then re-run with npm start. Then my html had the HI msg in the console output.
LOVED this tutorial! Very informative and very easy to follow! Thank you so much. Like the others, I would love to see more TypeScript tutorials. If possible, some centered around API usage please. I'm still learning TypeScript and this tutorial helped me so much. Thank you! :)
You crack me up lol , love how you impliment shallow concerns even ... " You can make changed to this If you need , If you want to like know how this works " lol
*Really excited to see you reaching 1 Million Subs Kyle brother*
Yes...been wanting a nice quick TypeScript tutorial. Thanks!
Nothing is more exiting than starting a typescript project 😁
Yeah
Woah! I finally get why typescript is so amazing!!!! It preemptively exposes possible errors in your code before you deploy! 😱😱 This is 🔥🔥🔥🔥
@13:36
That is a type assertion (`as` syntax)
You can use `document.getElementById("new-task-form")`.
This is the same as `document.getElementById("new-task-form") as HTMLFormElement`.
@15:00
You can use the non-null assertion operator if you are sure that what you are using is not null and not undefined. This is an exclamation mark (!) and is used after an expression.
When creating (no need to use this operator afterwards):
`const input = document.querySelector("#new-task-title")!`
When using:
`input!.value`
Note: this is removed in transpilation and is just to make TypeScript happy.
thank you that works. This UA-camr never responds to comments but it helps people who read them.
thanks! changing the 'const form' fixed everything here (page was reloading even with preventDefault, wasn't adding tasks nor saving them)
Yes, we would love to see more tutorials on Typescript
this was a great intro for me, i watched many videos going into a lot of theory, but seeing it in practice and seeing right away the linting and error warnings and how the code is a lot more reliable like people say. thank you
dude this tutorial is so useful.i have try to learn typescript for a long time but I couldn't find a clear tutorial. you killed it man. please make more.
Hands down, best small TS intro ever :)
Awesome Kyle! I was waiting for Typescript projects!
That was a quick and a very good video... i have been following you for a while now and I am eager to see your desk setup and other cosmetic stuff behind the scenes which usually any other youtubers would have posted a hundred times :)
PLS MORE TYPESCRIPT... Very nice content thank you very much, i learn a lot with your tutorials :D
Great video introducing typescipt. My only comment is when you are typing console commands (like npm), don't have the input line at the bottom of the video as the youtube timeline blocks it when the video is paused.
If you're using Vite and you get an error when you create a vanilla typescript project and try to run it, trying deleting the project and starting again or re-installing the packages 'Vite' and 'Typescript'. In my case for some reason when creating the project using Vite the 'Vite' library wasn't installed properly, and the problem went away after I installed it again.
OMG, can u make a TS Project series? One beginners project, and then go slightly advanced to really advanced? That would be brilliant.
you can pick any normal js beginners project master it and try to build it with typescript
would definitely love to learn typescript as now i am seeing javascript wouldn't provide much design patterns in backend development
Finally someone locally do it! Thank you!
Loved it, also Please cover some advanced concepts like generics etc
Thank you, Kyle. I enjoy this short course.
Great video as always!! Keep it up with the Typescript!
I followed this tutorial to create my first web app ever. Little did I know, it would also make creating my first Angular project so easy (Tic-tac-toe by Fireship).
I've learned so much with your videos. Thank you for being such a great teacher and for sharing what you know Kyle.
Greetings from El Salvador!
Great explanation!
Thanks very much , i really appreciate your content , you literally simplify complex things
* Me copying and diving into deep details with every line of code Simplified does*
Simplified: We will be delteing all this
Me: 🙂
Best demonstration of the benefits given by using TS
I will be happy of Kyle make many games with vanilla Typescript
Woot! Kyle doing typescript.
amazing video helped me understand typescript way better.
This is just what I need it, nice timing.
I have been waiting for this.
Amzing intro, I would love more!
YES YES YES MORE TYPESCRIPT TUTORIALS !!!!
NICE! Looking forward to more TS! :)
thank you so much
Kyle, you are THE LEGEND
thank you!!!
Any tutorial from you is good. I feel my single dead braincell reviving with every video I watch. At this rate it might start working and maybe even multiply so I can finally have 2 braincells to rub together
Justo lo que buscaba... pocos tutoriales de estos 🤯🤯
You make it simple. Thanks ❤❤
Hello dear please make more TS projects like this your efforts are amazing 🥰
Thanks for your video. Please make more videos about typescript, especially videos about type, convert type, generic type, error with type... JavaScript is not dead, but today a lot of people write code using typescript so I think you should add more videos about it
Thanks. You may give more TypeScript.
Great video as always, I'll definitely try it
as usual great video, I Need to understand generics completely so please bring up some videos if your time permits.
Great video, I learned a lot from it! Also, is there any Svelte video's coming soon?
Web Dev Simplified as advertised 👍
I like typescript, please do more projects on typescript
Kyle is the kind of breezing over errors as if they were part of the script.
if you plan on doing a project like this, please note, snowpack is no longer maintained please don't use it, instead use something like vitejs, parcel, rollupjs or esbuild
yea, but the point of this video is litteraly just how to get started with using typescript this will work with other package bundler
Awesome content kyle💪
Would love more typescript!
This looks great. I have no idea why I have this right-click error. But I am sure it'll work on other computers LOL. I am always getting errors when I follow tutorials. Ha!
Uncaught TypeError: event.cancelBubble is not a function
at HTMLDocument.bringBackDefault (new_rightclick.js:87:31)
Thanks for the videos! Hope to see more typescript videos!
What a great lesson! Thanks a lot!
For anyone getting an error with that uuid import.. just keep going her resolves it at: ~18:30 it is supposed to be an error
more vanilla js & ts videos please this really helps me
where is the /dist folder and the index.js file that was created by snowpack?
there is no actual dist folder. After adding the script line to HTML, I resolved by Ctrl+C to cancel in terminal, then re-run with npm start. Then my html had the HI msg in the console output.
sheeeeeesh
he finally decided to join the TS elite gang
Pls make one with pure javascript and sevelte
I loved it, please make more TS content :)
This is awesome thank you for this 🙏
Thank you, very useful video, i got a plenty of benefits. :)
Please make more TypeScript tutorials!!
Thank you for that tutorial
Hi! I'm leaving this here because I could not find anything on the Snowpack website or on Stackoverflow. I installed the `html2json` module and the @types that come with it. I even created a code to use it, but it is failing with the following error:
Unhandled Runtime Error
Uncaught TypeError: Cannot set properties of undefined (setting 'HTMLParser')
I don't seem to find the reason why is not working. If I remove the import, or even more, it works if I remove the reference inside the code to that module.
If anyone know why is this happening, I would appreciate the help!
Thanks!!
Once you're up with Typescript, there's no way back
wow amazing thank you
godly tutorial man
here is my problem with videos like this, he used snowpack which was updated at the time, but hasn't been updated in 3 years. This is a massive issue with modern web dev. To many services that are never updated.
More typescripts please 👍
Please start react native videos
Would love to see how to use react with typescript
Completed!
When it comes to TS, we've done this type of projects to death. I'd appreciate something that deals with async functions or something more complex.
TS must have in any new projects
at 4:13 you show the console with "hi 2" but how do you launch the dev server to get the app running in our browser? I can't see "Hi 2" in my console when I try and open the index.html file in my browser.
at 10:24 video
where does snopack keeps compiled ts code ?
how does this snopack tells browser to use the uuid from node_modues ?
Nobody:
Kyle: Typescript is smart enough to know…
20:00 What's the difference between Types and Interfaces?
Good Jobs 🤟🏿
The minesweeper code is different then what you have on TypeScript Simplified tutorial, Please update it
Ur great thanks
Relying on externalities is so dumb. Just 8-months later and already things are broken in this tutorial. future-proof > futuristic
Thank you!!
My page is reloading even with the preventDefault
check all your const in the beginning(list, form, input)
Thank you ❤❤❤
Love you man