Vue 3 & Composition API - Full Project

  Рет қаралды 103,463

Traversy Media

Traversy Media

Күн бұрын

Build an expense tracker application from scratch using Vue.js 3 and the composition API with the latest syntax from version 3.2.
Final Code:
github.com/bradtraversy/vue-e...
Vanilla JS Project Repo:
github.com/bradtraversy/vanil...
Blog Post:
www.traversymedia.com/blog/vu...
Check Out My Courses:
traversymedia.com
Timestamps:
0:00 - Intro & Demo
3:21 - Vue.js Setup
4:57 - File Structure
7:44 - Boilerplate Clean Up
9:06 - Create Component Files & Templates
12:30 - Create and import Components
18:50 - TransactionList Display
28:37 - Transactions in Global State
30:12 - Pass & Recieve Props (defineProps)
32:30 - Balance Component & computed()
37:21 - Income & Expenses Component
42:34 - AddTransaction Form Component
44:58 - Binding Form Inputs
46:41 - Validation & Toasts
52:05 - Emit Custom Events (defineEmits)
54:45 - Add Transaction to State
59:30 - Deleting Transactions
1:03:30 - Fetch From Local Storage & OnMounted()
1:06:09 - Save to Local Storage

Пікірлер: 179
@Zetlify_Official
@Zetlify_Official 5 ай бұрын
In the world of popularity, I decided to stick with VueJS , Thank you so much Mr. Brad for another inspirational video.
@wovasteengova
@wovasteengova 4 ай бұрын
ya me too. I am going to stick with them.
@shawnshaw9859
@shawnshaw9859 20 күн бұрын
@@wovasteengova me too, the only true community based frontend framework while react lost it way and svelte got bought up
@xbmcme9768
@xbmcme9768 2 ай бұрын
I've been watching your videos for a while now. It was your videos that got me started on programming. 5 years laters, you're still cranking out banger content. Thanks!
@junior.santana
@junior.santana 5 ай бұрын
Great tutorial! I'm new to Vue and even though I had already seen all the stuff you showed, it was really good to understand better the composition API. Also, it's always good to see tutorials with a nice UI and covering all functionalities like that
@beakdan
@beakdan 5 ай бұрын
Thank you! I started to learn vue recently after more than 15 years of not working with web technologies and was confused about a lot of things. I followed religiously the instructions of your other vue video but I was still confused and learning the "setup" style. This video answered my questions, now I clearly understand the purpose. Again, thank you!
@febryanakhdani4244
@febryanakhdani4244 4 ай бұрын
just trying this vue tutorial 3 days ago and finally I can understand about the props and emits concept. such a great and amazing video. I hope you can continue the tutorial of vue 3. thanks you so much
@mariusvranceanu8595
@mariusvranceanu8595 5 ай бұрын
I finished your JS from scratch course a few weeks ago and started doing projects, got the hang of it and tried React . Wasn't my cup of tea, especially having used SvelteKit a bit, but Vue, I like their background story a lot and I picked it up yesterday and It just happened that you uploaded a Vue 3 video. Awesome! Thank you!
@cecitorresmx
@cecitorresmx 5 ай бұрын
Thank you Brad, thanks to you I got my first job as frontend developer 5 years ago, Your course for Vue.js helped me a lot with the interview and my first months there. Now I'm looking for a new position and I was looking for some recap in Vue 3 for my next job interviews and I found your video! I'm sure I'm going to repeat the same good luck :)
@user-fj7df3ng7z
@user-fj7df3ng7z 4 ай бұрын
Excellent course, Brad! I just completed a Vue basics course on another channel and was going to start writing my own code right away but decided a little more practice would help, as would hearing things explained by a different person. I'm glad I went that way! I now understand several things better. As a huge bonus, you finally cleared up the difference between the options API, the composition API and the composition API with the tag, which had REALLY been confusing me in various examples I had been examining. That alone is going to make my future coding projects easier! I've done several of your courses now and they are consistently excellent so thank you VERY MUCH for doing what you do so well!
@STR2060
@STR2060 2 ай бұрын
Your explanation of these Vue's basic concepts is just so straightforward. Unlike some guys who will spend 100,000 years to describe it's features whatever before show me the practical usage.
@mouradeljayi584
@mouradeljayi584 5 ай бұрын
Glad you are still uploading Vue JS content.. Thank's Brad !
@TraversyMedia
@TraversyMedia 5 ай бұрын
No problem. Thanks for watching! I will be doing a Vue course at some point next year. Which also means more Vue KZbin content as well.
@rajeshbudhathoki7888
@rajeshbudhathoki7888 5 ай бұрын
WOW! 🤩@@TraversyMedia
@mahmoodbina2193
@mahmoodbina2193 5 ай бұрын
@@TraversyMedia pleaseeeee do it !!!! Even in your website , we will buy and support
@mounir101
@mounir101 5 ай бұрын
Glad to see you again in this new Vuejs tut. Pretty awesome, and thanks so much Mr. Brad
@cheesypizzajokes
@cheesypizzajokes 5 ай бұрын
Coincidental that I decided to learn Vuejs properly today with your 2021 Vue js crash course, got to where you said you werent covering composition api, googled to see if you ended up making that separate vid, and whaddya know, published "3 days ago" Thanks as always, Brad
@asadmalik5075
@asadmalik5075 5 ай бұрын
Wow so much straight forward since I am a React Developer I am impressed how the Vue works
@SamuelCoupland
@SamuelCoupland 2 ай бұрын
Thank you for this! Really helpful for a crash course before an interview where they use Vue. Coming from React it was just a perfect overview, and plenty of times I went off to the docs and learnt something new about Vue. Thank you again Brad!
@namaefumei
@namaefumei 5 ай бұрын
My god I love Vue. I had to use react for a company project for a year and every second I thought there is an easier way in Vue
@caaltz
@caaltz 3 ай бұрын
I tried to learn react 4 times, every time I get bored to death and feel no joy at all, I use at my work sometimes to adjust some projects from the guys that leave, my boss just decided to use Vue with our Laravel projects and I'm really happy about it!
@matthewcorbett8637
@matthewcorbett8637 5 ай бұрын
Ive been building a passion project in Vue the last year! Cant wait to use this toast lib to add a little pazaz to my UI 😊 Thanks Brad!!
@MuratcanBerber
@MuratcanBerber 5 ай бұрын
I watched maybe a dozen different Vue 3 Composition API tutorials, and this is the one that made me really understand these concepts. Props, emits, life cycle functions... it's more than just a crash course. As always, Brad, you made my day and really showed how good your tutorials are. Your ability to teach is exceptional. The world is a better place because of you. Thank you for the video. I hope you will continue to enjoy creating content to make software really fun and understandable. Thank you again.
@Aeric80
@Aeric80 4 ай бұрын
I strongly agree with you. Brad explains the concepts and practical in a very straight forward and concise way where I find other videos are long winded and confusing.
@paulthomas1052
@paulthomas1052 5 ай бұрын
Great demo as always - well paced and full of relevant real-word content. Thanks !
@allprowebdesigns917
@allprowebdesigns917 17 күн бұрын
Good to see you back with a Vue JS tutorial and the composition API for Vue's reactivity components.
@prasannabakare0456
@prasannabakare0456 5 ай бұрын
Vue JS soo easy to implement especially in composition API. I prefer it more over react.
@TraversyMedia
@TraversyMedia 5 ай бұрын
It really is super straightforward. I love React, but there are a lot of quirks to get used to.
@neneodonkor
@neneodonkor 2 ай бұрын
Me too. 👍🏾👍🏾👍🏾
@Patrick-jn9je
@Patrick-jn9je 5 ай бұрын
Your tutorials are really easy to digest. That 1 hour just passed by so quickly.
@modris2980
@modris2980 5 ай бұрын
Thank you so much for creating this tutorial. A total beginner here and it's perfect.
@amidipu
@amidipu 5 ай бұрын
Great tutorial. specific and no boiler plate talks as always from you, like it 🙂
@Viralplace
@Viralplace 5 ай бұрын
Wooow thanks Brad from Italy! I love vue, hope to see more video about that and vite + pinia
@JuanPalominoMusic
@JuanPalominoMusic Ай бұрын
Thanks for this tutorial, helped me transitioning from Vue 2 to Vue 3.
@derricknjoroge2494
@derricknjoroge2494 5 ай бұрын
Looking forward to learning here
@_moxy9905
@_moxy9905 5 ай бұрын
Yeaaaaaaaa, best framework ever 🎉🎉🎉
@caaltz
@caaltz 3 ай бұрын
Thanks Brad, your content is excellent. Love your teaching style
@stephenng4036
@stephenng4036 2 ай бұрын
I have no choice but give a big like to this wonderful tutorial.
@Cire-my6ur
@Cire-my6ur 19 күн бұрын
You have always been really good at explaining how things work. Just explaining simply, how the il hover and transition works was extremely helpful. I hate css; always confuses me. Good video and perfect for someone that wants to get a better idea of how Vue works if you’re trying to incorporate it into your project.
@fvgoya
@fvgoya 5 ай бұрын
Great content as always Brad. Will be also awesome see some videos about Nuxt. Thanks Brad!!
@DaniilTheCoder
@DaniilTheCoder 7 күн бұрын
Огромное спасибо за написание небольшого приложения на Вью! Как раз после изучения документации хочется закреплять знания, что-то подглядывать у более опытных разработчиков 🤝
@UberDurable
@UberDurable 5 ай бұрын
Excellent as always, much appreciated.
@andresgarciaalves
@andresgarciaalves 5 ай бұрын
Thank you Brad, awesome content 😊
@jarabialex
@jarabialex 5 ай бұрын
Awoohoo! Looking forward to coding along
@michaels.5001
@michaels.5001 Ай бұрын
Absolutely great tutorial, mega well explained.
@GilAguilar
@GilAguilar 5 ай бұрын
Nice I know this is going to be great! Once that music starts and your voice is heard. My laptop says , let’s do this 🤟💙💪🏽☕️
@TraversyMedia
@TraversyMedia 5 ай бұрын
Awesome!
@wb2c0
@wb2c0 5 ай бұрын
hands down the best teacher
@alques-dias
@alques-dias 4 ай бұрын
Awesome job, please make more content with Composition API
@je-suis-alin
@je-suis-alin 3 ай бұрын
I'm here just to say "Hi!" to Brad! You are awesome, as always!
@olalekanidowu7078
@olalekanidowu7078 2 ай бұрын
This is very great, thanks Brad
@user-st3ek4lq2l
@user-st3ek4lq2l 5 ай бұрын
Tutorial is awsome, just what i need!
@greatssmartnetsystems
@greatssmartnetsystems 11 күн бұрын
Just on point. 🎉 thank you
@sogbeydaniel8074
@sogbeydaniel8074 5 ай бұрын
❤. Just started learning Vue about a week ago
@Coderdawg
@Coderdawg 5 ай бұрын
How’s your learning going so far?
@sandeshshrangare
@sandeshshrangare 5 ай бұрын
I'm also learning vue js .. is it worth it. Cus. Of im scare about all these things
@kingvas7638
@kingvas7638 5 ай бұрын
Best frontend framework!! Vue❤
@selviaantoine5701
@selviaantoine5701 5 ай бұрын
Thank you so much Brad.
@dennismuthomi712
@dennismuthomi712 5 ай бұрын
Thank you Brad!
@munraitoo13
@munraitoo13 Ай бұрын
Thank you for your knowledge!
@salmanahmedkhan3979
@salmanahmedkhan3979 3 ай бұрын
great video. now i can do the tasks of my job.
@jonl316
@jonl316 5 ай бұрын
Love this content. Vue is the way to go.
@iUmerFarooq
@iUmerFarooq 5 ай бұрын
Love to see Vue content on your channel. Want to se Nuxt 3 also. Make some fullstack projects in Nuxt 3. Thank you ;)
@Viralplace
@Viralplace 5 ай бұрын
Yeeesss a MEVN stack!
@codedjango
@codedjango 5 ай бұрын
Thank you so much for this Vue tutorial
@doyouknowthishacks
@doyouknowthishacks 5 ай бұрын
You Explaination is awsome .... dear.... and also conent project is excellent.... keep it up dear
@glatocha
@glatocha 5 ай бұрын
ha, love it, Exactly what my next APP will be. But on top of what you have I will have supabase behind the data and quasar to help out with workflow and UI components
@MacKoslowski
@MacKoslowski 5 ай бұрын
Chose Vue for work projects and haven't regretted it. Give it a shot!
@neneodonkor
@neneodonkor 2 ай бұрын
I presume you work as a freelancer.
@m3-dev
@m3-dev 2 ай бұрын
Thanks!!! great explaination. now to try it on my own 😜
@gogoikabir
@gogoikabir 5 ай бұрын
Thank you for the video ❤
@VitaliySunny
@VitaliySunny 5 ай бұрын
Thanks, very cool project.
@peterpen983
@peterpen983 5 ай бұрын
Good job my bro!
@yugeyuge8008
@yugeyuge8008 3 ай бұрын
Thanks for the good tutorial.
@chandrachurmukherjeejucse5816
@chandrachurmukherjeejucse5816 3 ай бұрын
Goated Lecture fr.
@geek_muslim
@geek_muslim 2 ай бұрын
Thanks bro this was awesome
@ilyasbenihia869
@ilyasbenihia869 5 ай бұрын
I love Vue and i love you content
@raksmey9780
@raksmey9780 5 ай бұрын
superb turtorial
@kendouciabdelaliilyas
@kendouciabdelaliilyas 5 ай бұрын
Thanks Brad. I hope some contents for Nuxt 3
@atlantisuds6625
@atlantisuds6625 5 ай бұрын
Thank you for your video. I'm new in Vue, and this tutorial taught me a lot of basics. I hope you can make better and better videos!
@MonirSaikat
@MonirSaikat 4 ай бұрын
hey
@gadgetkh9408
@gadgetkh9408 5 ай бұрын
Great content. Thank you! Can you please also create video of Vue3+ionic+capacitor?
@ionelgis
@ionelgis 5 ай бұрын
Love Vue with composition api. It's also very similar to Svelte
@chungtunguyen6135
@chungtunguyen6135 4 ай бұрын
thanks for this tutorial! it's very helpfull!
@machelealhassan1496
@machelealhassan1496 3 ай бұрын
Superb!
@user-ye1xz3xx2u
@user-ye1xz3xx2u 5 ай бұрын
thank you so much!
@akashshetty6422
@akashshetty6422 2 ай бұрын
thanks for the video
@user-vn2ot8pd9r
@user-vn2ot8pd9r 5 ай бұрын
You are awesome... Like always ❤👍
@user-ii6rb6nw8c
@user-ii6rb6nw8c 5 ай бұрын
thank you so much
@IT_with_Glitch
@IT_with_Glitch 5 ай бұрын
Brad loves from costa rica mate, hopefully one day i will appear on one of your videos.
@basicsprogrammingandelectr3043
@basicsprogrammingandelectr3043 5 ай бұрын
it's really good, helpfull video thanks vary much
@isaacqadri
@isaacqadri 5 ай бұрын
Vue3+composition api❤❤❤
@johnacsyen
@johnacsyen Ай бұрын
Great tutorial. Learning Vue for first time. @1:05:05, Coming from React, Vue seems easier
@adriancastillo3370
@adriancastillo3370 5 ай бұрын
THANK YOU
@nadetdevfullstack7041
@nadetdevfullstack7041 5 ай бұрын
Excellent
@kurshadqaya1684
@kurshadqaya1684 5 ай бұрын
Then only channel I just press like no matter I watch or not.
@TraversyMedia
@TraversyMedia 5 ай бұрын
It's appreciated 👊
@claudiocl8937
@claudiocl8937 5 ай бұрын
Nice tutorial
@user-bh7pe9ti7f
@user-bh7pe9ti7f 5 ай бұрын
Thanks you so much
@zuberab5405
@zuberab5405 5 ай бұрын
welcome back
@allenboniface8010
@allenboniface8010 5 ай бұрын
Watching from Tanzania
@bwanamaina
@bwanamaina 5 ай бұрын
jambo kaka 😂
@josoataryll4077
@josoataryll4077 2 ай бұрын
Thanks😊
@Bella_Will
@Bella_Will 5 ай бұрын
Great! Please can you create a content on API endpoint documentations.
@WESHAREknowledge
@WESHAREknowledge 2 ай бұрын
thank you
@user-du8lw4ur6v
@user-du8lw4ur6v Ай бұрын
Thanks alot
@user-su4rd3ml8b
@user-su4rd3ml8b 5 ай бұрын
brad is like that awesome older brother figure we never had, love you man thanks a lot for all these years
@addoconstant
@addoconstant 3 ай бұрын
Vue is the best js frontend framework. the implementation is seamless
@da_stoaz
@da_stoaz 3 ай бұрын
Really appreciate this tutorial. But which VSCode extensions do you use?
@0Xmo
@0Xmo 2 ай бұрын
u are the beeeeeeeest ♥
@mylesdavies9476
@mylesdavies9476 5 ай бұрын
❤ Vue 😊
@user-fj7df3ng7z
@user-fj7df3ng7z 4 ай бұрын
Just an idea, Brad, but I had an idea that might appeal to you: with the finished program from this video as a starting point, revise it to incorporate Pinia for all state management and local storage. I'm thinking of making that change in my own code....
@teckyify
@teckyify 5 ай бұрын
I can remember using the compositional api 1 or 2 years ago without the script setup tag. However, besides the convenience of not having a components object it looks actually more unorganized than having the traditional structured default object.
@TraversyMedia
@TraversyMedia 5 ай бұрын
I can see your point. I was a big fan of the options API and was turned off from the whole setup() function. I do like the new syntax though. I'm a big fan of the more vanilla-like just create variables and functions and they just work. It's really just preference. I'm glad the options API is still an option though. No pun intended lol
@dgloria
@dgloria 5 ай бұрын
Fab! Will do this asap. Does it use pinia? Does it use components from a single external source? I was never able to understand how to make buttons, modals etc as reusable components in Vue3. :)
@AgostinoManea
@AgostinoManea 5 ай бұрын
Thankyou, very usefull nice and clean. Just a question for my ogni clarification as js is not my main stuff. Back in v2 days I happened to work in a vue 2 project. There I used the Vuex methods to alter the data at the app level rather than emitting events from the component… mind some time has passe and my memory might be failing…. Is that still a thing or the emit is the v3 Wagner to go?
@neneodonkor
@neneodonkor 2 ай бұрын
With what I have learned so far, Pinia is now the official store manager for Vue. Perhaps, it operates in a similar way.
@Aeric80
@Aeric80 4 ай бұрын
Hi Brad, I am a bit confuse when writing defineProps, there is no variable call transactions but you can reference the transactions prop in the component. edit: sorry, I rewatch and saw it. It is one level up from the type and required.
@user-lp6qg8kx4v
@user-lp6qg8kx4v 4 ай бұрын
What extension do you use for Vue on Visual Code?
15 Web Developer-Related Career Paths
25:19
Traversy Media
Рет қаралды 121 М.
Mini Jelly Cake 🎂
00:50
Mr. Clabik
Рет қаралды 12 МЛН
ONE MORE SUBSCRIBER FOR 4 MILLION!
00:28
Horror Skunx
Рет қаралды 57 МЛН
Balloon Pop Racing Is INTENSE!!!
01:00
A4
Рет қаралды 3,4 МЛН
Vue.js: The Documentary
34:45
Honeypot
Рет қаралды 1,5 МЛН
The Difference Between Vue and React
10:27
Lachlan Miller
Рет қаралды 26 М.
Vue JS Crash Course
1:50:52
Traversy Media
Рет қаралды 1,3 МЛН
20 Essential VS Code Extensions In 2024
14:26
Traversy Media
Рет қаралды 108 М.
ref во Vue 3: реактивность на простых примерах
7:49
Дамир | Веб-разработка
Рет қаралды 206
Learn Pinia in 30 MINUTES! (Vue JS 3)
33:58
Make Apps with Danny
Рет қаралды 110 М.
HTMX Crash Course | Dynamic Pages Without Writing Any JavaScript
56:47
Traversy Media
Рет қаралды 123 М.
Are You Too Dumb To Code? A Chat About Imposter Syndrome
7:08
Traversy Media
Рет қаралды 60 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 518 М.
React VS Svelte...10 Examples
8:35
Beyond Fireship
Рет қаралды 501 М.
iPhone 15 в реальной жизни
20:03
HUDAKOV
Рет қаралды 687 М.
Опасная флешка 🤯
0:22
FATA MORGANA
Рет қаралды 594 М.
Секретная функция ютуба 😱🐍 #shorts
0:14
Владислав Шудейко
Рет қаралды 2,1 МЛН