Тёмный

Creating Your First Vue 3 App with Vite - A Beginner's Tutorial 

LearnVue
Подписаться 44 тыс.
Просмотров 57 тыс.
50% 1

Vite is a new tool to improve your frontend development experience - especially in Vue! It's lightning fast, easy to setup, and intuitive for people with experience with the vue-cli.
In this video, we'll cover the basics of Vue 3 and the Composition API, see how to create your Vue 3 app with Vite, and look at some other concepts like lifecycle hooks, simple event listeners, and more.
COMPANION ARTICLE WITH CODE
learnvue.co/2020/12/setting-u...
FREE VUE 3 CHEATSHEET WITH ESSENTIAL CODE SNIPPETS
learnvue.co/vue-3-essentials-...
follow me on twitter:
/ mattmaribojoc
🚨 Like quick Vue lessons like these? Check out 800+ lessons over on Vue School - go.learnvue.co/vueschool

Наука

Опубликовано:

 

18 янв 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@nyagah243
@nyagah243 Год назад
That tutorial was great. Straight to the point and got me to solidify the little that I know about the composition api.
@danieltatarkin892
@danieltatarkin892 2 года назад
This is a really awesome summary! An idea I have is to re-create this video every year highlighting any new changes in initializing new projects using latest best practices.
@jessicaryan9820
@jessicaryan9820 2 года назад
Doing the course on your website. I am a few lessons in and this is already an outstanding course. Very well explained and presented. Excellent value for money. Hoping you release more courses in the future.
@draggingtheshutter
@draggingtheshutter 10 месяцев назад
This format does not allow me to get bored. Very well executed
@yudilokhande8915
@yudilokhande8915 3 года назад
I have watched a ton of vue tutorials, and I must say that yours was one of the very best. It'll be interesting to see where you go in the future.
@LearnVue
@LearnVue 3 года назад
Thanks! Glad you found it helpful.
@mohithp8700
@mohithp8700 2 года назад
ur such a great creator i am struggling to learn react or vue u cleared my doubt real thanks
@shiya....
@shiya.... 2 года назад
Short and informational, thanks
@ReSpawNnL
@ReSpawNnL 3 года назад
Seriously binging your channel right now. Need more content!
@LearnVue
@LearnVue 3 года назад
thanks so much - im working on more content!
@ssahillppatell
@ssahillppatell 3 года назад
Thanks. Best video about the topic out there.
@LearnVue
@LearnVue 3 года назад
Wow, thanks!
@aliyenidede
@aliyenidede 3 года назад
I can't believe you have so few videos. You shot very high quality content, I hope you continue
@LearnVue
@LearnVue 3 года назад
Thank you!! I will continue so subscribe for more :)
@Desertbynight
@Desertbynight 2 года назад
@@LearnVue ok subscribed
@Romanthology
@Romanthology 3 года назад
Great tutotial, thanks !
@LearnVue
@LearnVue 3 года назад
Thanks! Glad to hear you like it :)
@yusufburakcakmak
@yusufburakcakmak 2 года назад
Nice video thank you
@SusanthCom
@SusanthCom 3 года назад
Thanks 👍 good work ❤️
@comunicloud30
@comunicloud30 2 года назад
Awesome video. Thanks
@mustafacinar9153
@mustafacinar9153 Год назад
Nice and clean.
@mrralphbur
@mrralphbur 3 года назад
We will watch your career with great interest.
@JORGEMARTINEZ-ho4wp
@JORGEMARTINEZ-ho4wp 3 года назад
We will indeed
@oluwafemiolukoya9352
@oluwafemiolukoya9352 2 года назад
awesome tutorial
@ngegamesantai_
@ngegamesantai_ 3 года назад
Subsribed and I'm expecting more content from you. Keep it up dude 😉
@LearnVue
@LearnVue 3 года назад
Thanks!
@ferdiheredia8137
@ferdiheredia8137 3 года назад
great explanation
@LearnVue
@LearnVue 3 года назад
Thanks so much for the kind words, can't wait to make more content for all the Vue devs out there!
@susmoysengupta1551
@susmoysengupta1551 3 года назад
Your videos are short and very much understandable. Please make videos on Vue authentication using vuex and laravel sanctum or passport.
@LearnVue
@LearnVue 3 года назад
Vue w/ Passport tutorials sound great - definitely going in the list of videos to make!!
@guillermodanielmazzarigiov1768
Thanks for the vid! How could you make a Vue boilerplate including router components with vite?
@Oderwat
@Oderwat 2 года назад
I just wonder why you did not use style when the scaffold already showed it.
@69leostereo
@69leostereo 2 года назад
should we consider use vite from now on ?
@Imaginativeone_DF
@Imaginativeone_DF Год назад
How do I add vue-tools and sqlite?
@mytop5602
@mytop5602 2 года назад
What does "export default" ?
@hummmingbear
@hummmingbear 3 года назад
Would love if you posted a link to the code repo with this example in it
@LearnVue
@LearnVue 3 года назад
Hey! I don't have a code repo at the moment, but most of the code can be found on our website on the companion article: learnvue.co/2020/12/setting-up-your-first-vue3-project-vue-3-0-release/.
@hummmingbear
@hummmingbear 3 года назад
@@LearnVue thanks! Yes I saw the article, but was hoping to pull down the repo instead of copying all the individual pieces
@CatoTheAdopted
@CatoTheAdopted 3 года назад
This is a great tutorial. Subscribed. Not to be too cheeky, but any chance you might know how to properly configure Vite to run with Postcss and Autoprefixer? I've been digging around for the last few days and can't seem to get autoprefixer to work with Vite at all.
@dmitryk2058
@dmitryk2058 3 года назад
same here...trying to get that going but no luck so far
@clarkeeeee
@clarkeeeee 3 года назад
The latest version of Vite should be working with PostCSS automatically, according to the docs, so all you should need to do is add a postcss.js.config to the directory where your project is. It's kind of frustrating digging for this info, so here's what mine looks like: const { default: postcss } = require('./node_modules/postcss'); module.exports = { plugins: { 'precss': {}, 'postcss-preset-env': { stage: 3, }, 'autoprefixer': {}, 'cssnano': {}, } } The info for what to put in those curly braces is on the docs for each individual plugin, as each one has different config options, such as my "polyfill," which is set to stage 3. Of course, you'll also need to install all the PostCSS plugins you want before they work, with yarn or npm. This is basically what I did for mine: yarn add postcss yarn add autoprefixer yarn add cssnano yarn add precss yarn add postcss-preset-env Adding them all on a one line command didn't work for me for some reason, so I separated them like that. Then I restarted the server, and it was working great. Another thing to keep in mind is that not a lot of prefixes are needed these days, so prefixer might actually be working, just not adding prefixes that aren't needed. A great one to test is "::placeholder." Prefixes for that will be generated if things are working. One more thing: I don't know 100% if PostCSS is run in the dev server (I'm not THAT smart yet), but I know for sure it runs on build. :] That might be TMI, but I hope it leaves no questions for anyone who wants to know how to get this working.
@CatoTheAdopted
@CatoTheAdopted 3 года назад
@@clarkeeeee Thank you so much for the in depth answer :) I will try this out as soon as I get a chance, in the mean time, I had already moved away from Vite, leaving it to mature some more before using on production projects.
@clarkeeeee
@clarkeeeee 3 года назад
@@CatoTheAdopted No problem, good luck on your adventuring!
@harleylovitos7233
@harleylovitos7233 2 года назад
👍
@deweywsu
@deweywsu Год назад
Maybe it wasn't meant to, but the initial install fails on Windows (error: ERROR_REQUIRE_ESM)
@LearnVue
@LearnVue Год назад
what version of node are you running?
@hutomifawaza
@hutomifawaza Год назад
okay
@edenassos
@edenassos 3 года назад
Now where's the Vite 2.0 video? Haha
@MontagoDK
@MontagoDK 3 года назад
why the fuck is this video so fucking fast ??? now i need to watch it 2+ times to make sure i understood everything
@JimmyGee
@JimmyGee 3 года назад
Too fast. But thank you.
@LearnVue
@LearnVue 3 года назад
Sorry about that - I'm working on finding the perfect speed to teach everything, but I hope it was still useful.
@adriatic123
@adriatic123 2 года назад
This is way too fast
@sciencecompliance235
@sciencecompliance235 4 месяца назад
Too fast. Give people time to process the information.
Далее
Vue Slots Simplified
7:25
Просмотров 53 тыс.
Adding Drag and Drop to Your Vue 3 Project
7:05
Просмотров 78 тыс.
Vite Crash Course | Faster Alternative To CRA
16:24
Просмотров 189 тыс.
Vue 3 + Firebase Authentication in 10 Minutes
9:06
Просмотров 58 тыс.
Learn Pinia in 30 MINUTES! (Vue JS 3)
33:58
Просмотров 114 тыс.
Build with Ben: Vue 3 and TypeScript Working Session
1:16:32
Pinia Simplified
4:28
Просмотров 119 тыс.
Why is Everyone Using Vite?
7:34
Просмотров 76 тыс.
why im NOT hyped for nuxt 4
4:00
Просмотров 15 тыс.
Learn TypeScript With Vue.js 3 In 20 Minutes
22:56
Просмотров 75 тыс.