Learn Vite - Frontend Build Tool Course

  Рет қаралды 160,282

freeCodeCamp.org

freeCodeCamp.org

Күн бұрын

Learn how to use Vite, a build tool and development server designed specifically for modern web development. This course covers various topics, including creating a static server, using templates, integrating Tailwind, using environment variables, deploying to GitHub, Netlify, and Vercel, and configuring Vite. It also discusses the features of Vite, including hot module replacement and static asset handling.
✏️ Course created by @KhattakDev
KZbin: / khattakdev
Twitter: / khattakdev
Instagram: / khattakdev
⭐️ Contents ⭐️
⌨️ (0:00:00) Start
⌨️ (0:00:22) Learning Objectives
⌨️ (0:01:29) Introduction
⌨️ (0:02:50) What makes it fast?
⌨️ (0:04:49) Creating Static Server
⌨️ (0:17:29) Using Templates
⌨️ (0:24:39) Tailwind Integration
⌨️ (0:32:30) Env Variables
⌨️ (0:40:58) Deployments
⌨️ (1:00:22) Configurations
⌨️ (1:30:35) Wrap Up
🎉 Thanks to our Champion and Sponsor supporters:
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Erdeniz Unvan
👾 Justin Hual
👾 Agustín Kussrow
👾 Otis Morgan
--
Learn to code for free and get a developer job: www.freecodecamp.org
Read hundreds of articles on programming: freecodecamp.org/news

Пікірлер: 159
@Fetrah2
@Fetrah2 Жыл бұрын
⭐ Contents ⭐ ⌨ (0:00:00) Start ⌨ (0:00:22) Learning Objectives ⌨ (0:01:29) Introduction ⌨ (0:02:50) What makes it fast? ⌨ (0:04:49) Creating Static Server ⌨ (0:17:29) Using Templates ⌨ (0:24:39) Tailwind Integration ⌨ (0:32:30) Env Variables ⌨ (0:40:58) Deployments ⌨ (1:00:22) Configurations ⌨ (1:30:35) Wrap Up
@abc_cba
@abc_cba 11 ай бұрын
Thank You for this.
@wwloyd
@wwloyd Жыл бұрын
thanks arsalan, this video is a lifesaver! Vite is awesome especially while switching from webpack
@NareshKumawat-wy4od
@NareshKumawat-wy4od 9 күн бұрын
"Sir, your CSS module explanation was very helpful. Thank you for presenting it so nicely."
@alwaisy
@alwaisy Жыл бұрын
You really touched on the most important commands. I have the idea now, how does Vite work.
@andrewzheng9657
@andrewzheng9657 20 күн бұрын
Thanks for this quick intro into Vite.
@viniciusmorgado9722
@viniciusmorgado9722 Ай бұрын
Very nice video, this give to me a good overall about the options of Vite, theirs a lot of things that I don´t have consider use before.
@oantronghiep221
@oantronghiep221 7 ай бұрын
thank you very much, very clear, I watch all video and understand all you say... thanks
@ray84851
@ray84851 Жыл бұрын
Nice tutorial, thank you!👍
@muhammedozalp
@muhammedozalp 8 ай бұрын
Thanks for this great tutorial
@randomguy1
@randomguy1 Жыл бұрын
Love you Arslan full support ❤
@jamaka_me_code796
@jamaka_me_code796 Жыл бұрын
00:02:05 PREREQUISITES* Great video🎉
@tengerzander7921
@tengerzander7921 Жыл бұрын
wow amazing, downloading now...
@anar2609
@anar2609 Жыл бұрын
thanks to the author for the effort with Vite, the development will be accelerated at times
@sabertoukali
@sabertoukali 4 ай бұрын
Nice tutorial, thank you
@ahmadanis9930
@ahmadanis9930 Жыл бұрын
Great work!
@julianvelez6563
@julianvelez6563 Жыл бұрын
Nice work
@ashwanikumar183
@ashwanikumar183 6 ай бұрын
can we add the configuration for angular also
@user-dz7cx8fp9i
@user-dz7cx8fp9i 7 ай бұрын
how to take build by rectifying typescript type errors and warnings in vite
@AntonioBenderas
@AntonioBenderas 7 ай бұрын
How to import choices.js library?
@kasper369
@kasper369 Жыл бұрын
I hope this video teaches about how to optimize my app
@nareshc4828
@nareshc4828 Жыл бұрын
How to configure port number through env variables in vite.config.js Tried accessing through import.meta.env But was giving error
@JesusReyes-hp3nx
@JesusReyes-hp3nx Жыл бұрын
Nice Video, Thanks You!!
@Mari_Selalu_Berbuat_Kebaikan
@Mari_Selalu_Berbuat_Kebaikan 2 ай бұрын
Let's always do alot of good ❤️
@AshishKumar-ft6wv
@AshishKumar-ft6wv Жыл бұрын
Perfect
@thanirmalai
@thanirmalai Жыл бұрын
how to add eslint to vite during development
@gattorwichar3984
@gattorwichar3984 Жыл бұрын
Ramadan Mubarak from Sudan
@amaanullah13
@amaanullah13 Жыл бұрын
❤ same to you
@ifeanyiilonze5485
@ifeanyiilonze5485 2 ай бұрын
I tried building my vite project that has socket.io-client and axios installed. When I run build, it crashes. I've tried using polyfill, but it doesn't work either. How do I fix this
@user-ul5zb5fj2h
@user-ul5zb5fj2h Ай бұрын
Very useful video
@LearningLane3456
@LearningLane3456 Жыл бұрын
Please create a tutorial for creating an android app with good security for personal finance app.
@davoodaslani3882
@davoodaslani3882 5 ай бұрын
How set incognito chrome for vite project without create .env and vite.config.js file?
@codesoon9668
@codesoon9668 Жыл бұрын
Before watching this video I want to share an error I made and I hope I could understand why, this particularly happened when using tailwind CLI with Vite+React template in the latest version I read the blog you posted and I could not figure out the error so again I hope I could understand what I am missing out. Anyway it will help me a lot because I recently started using vite w/ react because of the update of create-react-app.
@mezzmar
@mezzmar Жыл бұрын
So, can you post what error it throws or anything that could help us help you?
@codesoon9668
@codesoon9668 Жыл бұрын
@@mezzmar I found the error I had made. First when you initialize tailwindCLI there is a content space where you put the files as well as THE DIR so that was the error I use components out of src which is the default snippet Tailwind offers you so I just add the DIR and now its working very well.
@prinjay4u
@prinjay4u Жыл бұрын
Great sr
@stevenoketch6950
@stevenoketch6950 Жыл бұрын
Vite is definitely choice number one after the death of cra
@404nohandlefound
@404nohandlefound 3 ай бұрын
I don't think it was necessary to include css modules in a video about vite. otherwise, it was a great video!
@talhabytheway
@talhabytheway Жыл бұрын
CONGRATS ARSALAN 💗💗
@scootergirl3662
@scootergirl3662 Жыл бұрын
Btw, I didn't have the package.json and node_modules get created (it looks like in the video it is created when you install vite?). I don't know if this is the "correct-est" way, but I did npm init and then it created a package.json for me to use. You could also type one out by hand but eh..... then you do the "npm install --save-dev vite", and it will automatically save vite to the package.json do let us know though if there is a better way
@dance3rt
@dance3rt Жыл бұрын
Thank you your way helped me
@luisbrazilva
@luisbrazilva 11 ай бұрын
I get it. It's fast but why is everyone ignoring the huge security risk of exposing your API connections and key because it serves the JSX files in the network activity tab without masking them or encoding them.
@Cognitoman
@Cognitoman Ай бұрын
Huh ?
@aaaliii4u
@aaaliii4u 8 ай бұрын
am I missing something or is it the old way of using vite?
@bhargavkumar
@bhargavkumar Жыл бұрын
Great
@Yahya_Umar
@Yahya_Umar Жыл бұрын
Need video tutorial for starting freelance work. Seeking experienced freelancer to cover client acquisition, portfolio creation, payment systems, and more. Let me know if interested!
@thespiritualjourney369
@thespiritualjourney369 3 ай бұрын
why do we write scripts manually in package.json?? instead you should've downloaded vite with react which comes with all dependencies and scripts. idk why make it complicated and increase the steps.
@bossgd100
@bossgd100 Жыл бұрын
I dont see what is slow with create react app . Its just a command you type at the start of the project. You change tool for 2 min at the start of the project ? I am missing something ?
@mettelhed
@mettelhed Жыл бұрын
CRA is no longer being maintained I think.
@BearDigitalStudios
@BearDigitalStudios Жыл бұрын
Create React App's bundle size to the browser is masive Vite only passes the code you need to navaigate your way around the site = better performance
@bogdanpryvalov
@bogdanpryvalov Жыл бұрын
i can't understand anything, he always slurps
@VeaceslavBARBARII
@VeaceslavBARBARII 6 ай бұрын
There will be soon released vite 5 See their migration guide
@bluesky-vc3tk
@bluesky-vc3tk Жыл бұрын
❤❤❤❤
@chesterxp508
@chesterxp508 2 ай бұрын
GoodJob!
@ayushhya
@ayushhya 2 ай бұрын
save dev vite is not showing any json files
@happydaydaniel
@happydaydaniel Жыл бұрын
Is these another way of creating a react web?
@OP-ig1fj
@OP-ig1fj Жыл бұрын
parcel nextjs but why not just vite
@franklinmayoyo
@franklinmayoyo Жыл бұрын
It not just another way but the best way currently.😂🤣 It's really faster than the create-react-app (which became depreciated recently)
@OP-ig1fj
@OP-ig1fj Жыл бұрын
@@franklinmayoyo plus cra will take up huge amounts of storage ye
@happydaydaniel
@happydaydaniel Жыл бұрын
@@franklinmayoyo is there any advantage cra has against it?
@franklinmayoyo
@franklinmayoyo Жыл бұрын
@@happydaydaniel not really. It's only that vite has some issue during development. At times you have to reload the server to see your changes. You might spend a lot of time trying to debug a problem only to realize that vite didn't effect your changes.
@m_yoda
@m_yoda 11 ай бұрын
Thanks for content, but sometimes it was hard to understand you because of your English.
@red5hat
@red5hat 11 ай бұрын
You have pronunciation problem in English. It's very difficult to understand your words.
@pradeepkumar-il5wr
@pradeepkumar-il5wr Жыл бұрын
Hello Sir, we are from India and want to see your full video, please add audio track option on your KZbin channel, what will happen with this, we can see your video in any language like Hindi, Tamil etc. The video track feature is new on youtube, so please add it quickly so that we can see your video. As Mr. Beast has added video tracks. Thank you
@w3hacker
@w3hacker 8 ай бұрын
Also add Chinese please
@yabuking84
@yabuking84 4 ай бұрын
This is not for beginners. He talks about HMR, bundlers like its second nature to viewers. Though this is very good for mid level developrs.
@srijonofficial621
@srijonofficial621 3 ай бұрын
what is HMR btw
@BurhanAijaz
@BurhanAijaz Жыл бұрын
what are the prerequisites
@NoSoyElPeluca
@NoSoyElPeluca Жыл бұрын
Entry level in Js, what it is and how webpack works (to understand why we are using VITE which is an alternative to webpack and the differences there are to configure the project), entry level in some framework (since VITE provides templates to start the project) and basic understanding of NPM since we will be installing packages like Tailwind. Anyway, configurations like Tailwind's that seem a bit difficult watching the video are very easy to setup, everything the teacher does is in the Tailwind documentation, it's almost a copy/paste. In general, almost all NPM packages for normal use tend to be a copy/paste.
@vramosjd
@vramosjd Жыл бұрын
What are the prerequisites?
@NoSoyElPeluca
@NoSoyElPeluca Жыл бұрын
Entry level in Js, what it is and how webpack works (to understand why we are using VITE which is an alternative to webpack and the differences there are to configure the project), entry level in some framework (since VITE provides templates to start the project) and basic understanding of NPM since we will be installing packages like Tailwind. Anyway, configurations like Tailwind's that seem a bit difficult watching the video are very easy to setup, everything the teacher does is in the Tailwind documentation, it's almost a copy/paste. In general, almost all NPM packages for normal use tend to be a copy/paste.
@vramosjd
@vramosjd Жыл бұрын
@@NoSoyElPeluca Thank you!
@Atanepes
@Atanepes Жыл бұрын
Well doing great, but Why there are new languages to make website i am beginner now i have to start with vite?? Or i have to start html??
@chilakalajakeer9957
@chilakalajakeer9957 Жыл бұрын
Vite is not a programming language,it is a build tool
@w3hacker
@w3hacker 8 ай бұрын
You should learn html , css , javascript first, then nodejs, then babel/webpack or vite, then vue/react
@nsa3679
@nsa3679 6 ай бұрын
no hate, but i had to use subtitles
@Cahnisama
@Cahnisama Жыл бұрын
This was rought to understand as a non native english speaker.
@laja6108
@laja6108 Жыл бұрын
It was rough to understand as a native speaker, too 🙃
@danonmily
@danonmily Ай бұрын
Good video but please practice pronounciation of english words. Sometimes it was hard to infere what you were saying
@user-ff9el4jf6y
@user-ff9el4jf6y Жыл бұрын
I'm not native english speaker, seems like a great course but is so hard to understand! 😫😭 Whit the rest of the videos I have no problem
@scootergirl3662
@scootergirl3662 Жыл бұрын
It's not just you - the speaker's enunciation isn't great. I love what Freecodecamp is doing, but they get a lot of people who aren't great communicators. I am starting to turn the volume off on a lot of tutorials anyway at this point so I can listen to something else.
@m_yoda
@m_yoda 11 ай бұрын
The same.
@w3hacker
@w3hacker 8 ай бұрын
He's 22 years old? I think he wants to get more subscribers, but he fails.
@musaddiqali1
@musaddiqali1 6 ай бұрын
Maybe it's because of his braces. I was also struggling to understand some words he was saying.
@scottonanski4173
@scottonanski4173 7 ай бұрын
Beginners don't know React, Vue, etc. They know HTML, CSS, and MAYBE a bit of JavaScript.
@hakuna_matata_hakuna
@hakuna_matata_hakuna Жыл бұрын
disappointing vite lib mode isn't talked about much
@user-nf9cg9ig6u
@user-nf9cg9ig6u 9 ай бұрын
hard to listen
@user-ln6th4cm6d
@user-ln6th4cm6d 4 ай бұрын
I really honestly think that the module on the static server was unnescessary
@Nodsaibot
@Nodsaibot Жыл бұрын
I was afraid of this, I dont understand anything hes saying, [cc] to the rescue
@justkaz7104
@justkaz7104 3 ай бұрын
This guy's accent is challenging! Can't you not get a native English speaker?
@ibizawavey8630
@ibizawavey8630 Жыл бұрын
i'm new new new to programming. where do I start guys?
@anisohassanabdulahi1999
@anisohassanabdulahi1999 Жыл бұрын
Python is a good beginner ❤
@joysaha3927
@joysaha3927 Жыл бұрын
Learn C programming first, then C++, then Java.. After that, rest of the languages will be easy to learn for you.
@OP-ig1fj
@OP-ig1fj Жыл бұрын
what do u wanna do later? do u wanna build websites or
@ibizawavey8630
@ibizawavey8630 Жыл бұрын
@@joysaha3927 That's like saying to a guy who just came to my gym, "come do deadlifts with me, after that doing iso exercises will be very easy for you" lol that stuff is for advanced trainers like myself, not a guy who just walked in the gym who doesn't know anything about form, timing, time under tension, mind/muscle connection etc etc. Everyone is also giving different advice which tells me no one has a single clue so i'll just follow my own gym analogy. I'll start with the fundamentals, then i'll do javascript and do some volunteer work with non profits to get experience.
@joysaha3927
@joysaha3927 Жыл бұрын
@@ibizawavey8630 All the best! 👍
@senti2175
@senti2175 Жыл бұрын
Are there Khattaks in India? His name has Khattak but his accent is like Indian. 🤔
@rajghosh217
@rajghosh217 Жыл бұрын
He is Pakistan
@usmanahmedgoray
@usmanahmedgoray Жыл бұрын
He is Pakistanis. Khattak is tribe in Pakistan and man which belong to that tribe is add his tribe name as surname
@-rate6326
@-rate6326 Жыл бұрын
​@@usmanahmedgoray there are khattaks india too. They might have migrated at the time of partition.
@anisohassanabdulahi1999
@anisohassanabdulahi1999 Жыл бұрын
All Muslim programmers Ramadan mubarak ❤❤ today is first day of Ramadan Alhamdullilah ❤❤
@dastgirakhtar9782
@dastgirakhtar9782 Жыл бұрын
Our will be tomorrow. 🇮🇳🇮🇳🇮🇳❤❤
@salwaabusaad9819
@salwaabusaad9819 Жыл бұрын
❤❤❤
@xamsemahdi3861
@xamsemahdi3861 Жыл бұрын
🇸🇴🇸🇴🇸🇴🇸🇴🇸🇴🇸🇴🇸🇴🇸🇴🇸🇴❤❤❤❤
@alilokhd4638
@alilokhd4638 Жыл бұрын
🇩🇿🇩🇿🇩🇿🇩🇿
@farukishak7010
@farukishak7010 Жыл бұрын
Thank you from Nigeria
@UnderstandingCode
@UnderstandingCode Жыл бұрын
4:19 what's that dude?? I can't make out what you're saying!
@BrinleyBlogette
@BrinleyBlogette 25 күн бұрын
had to pause and replay SO many times. very challenging to make out numerous words he attempted to pronounce. please try to use more native English speakers to explain things.
@yukimo3025
@yukimo3025 Жыл бұрын
As foreigner and English as the second language, I didn't understand anything what he said because of his accent, please freeCodeCamp next time choose a native speaker
@laja6108
@laja6108 Жыл бұрын
I can’t understand with English as my first language
@shivanshmishra7992
@shivanshmishra7992 Жыл бұрын
Turn on "Closed Captions"
@knowledgedose1956
@knowledgedose1956 8 ай бұрын
​​@@shivanshmishra7992ok, but the tutorial itself is a bit of low quality, compared to others. not the video
@arnesneyers2076
@arnesneyers2076 6 ай бұрын
I feel this 'course' is way too long since it's basically just a setup that you find in tutorials of five minutes and doesn't really add extra value to me.
@BoolFalse
@BoolFalse 5 ай бұрын
not even counting the fact that Bun changed plans )
@user-rw2wr9ul5s
@user-rw2wr9ul5s 11 ай бұрын
Thank you for sharing this valuable content. I can't stand your pronunciation though.
@subhajitdey4483
@subhajitdey4483 Жыл бұрын
If you kindly reply to my comment in the pyspark video... Plzzzzzz🙏🙏🙏
@bharath2508
@bharath2508 Жыл бұрын
I am watching this from Akhand Hindu Rashtra aka Eurasia.
@jacobdawn4735
@jacobdawn4735 Жыл бұрын
hi
@romi8634
@romi8634 2 ай бұрын
not good waste of time , voice quality issues and please explain clearly , you just showing us how to do , just like copy pasting
@scottonanski4173
@scottonanski4173 7 ай бұрын
You trying to explain the deployment was a dog's breakfast. Not only did my example break, you didn't account for any errors that might have occurred basically make this entire tutorial useless.
@user-jr4ze8je7d
@user-jr4ze8je7d 6 ай бұрын
THE BIG PROBLEM I SEEN IN THIS VIDEO IS, TOO MUCH UNNECESSARY EXPLANATIONS TALKING
@Snipergaming-14
@Snipergaming-14 Жыл бұрын
Will Chatgpt remove programmers? ill Chatgpt remove programmers?
@mossfoobar8322
@mossfoobar8322 4 ай бұрын
Yes itll remove basic programming needs for many companies. The job maeket is already saturated and many are getting laid off. However if you have exceptional skills or a talent which you invested many years to develop its unlikely that chatgpt can replicate that. Security or networking is an example
@kim92se64
@kim92se64 Жыл бұрын
57 m
@claudettegivens9039
@claudettegivens9039 5 ай бұрын
Unable to understand the speech patterns of the instructor. Waste of time
@lunaticberserker5869
@lunaticberserker5869 Жыл бұрын
Learn ChadGPT ;)
@korkut31
@korkut31 10 ай бұрын
your name is wrong.. it is a TURK ish name and it is 'ARSLAN' not arsalan
@dev_jun
@dev_jun Жыл бұрын
finally, someone from Pakistan
@SjarMenace
@SjarMenace Жыл бұрын
I get so triggered its not "veet" its v i t e!
@laja6108
@laja6108 Жыл бұрын
It literally says in the first sentence of the docs that it’s pronounced “veet”
@testmail3875
@testmail3875 7 ай бұрын
bht hi bakwas vite chord ke sab ho rha h
@prashantkamboj207
@prashantkamboj207 2 ай бұрын
Not useful
@yourgflikesit
@yourgflikesit Жыл бұрын
So difficult to understand, you mumble your words constantly.
@TodayCurrentAffairs2299
@TodayCurrentAffairs2299 Жыл бұрын
Hello Sir, we are from India and want to see your full video, please add audio track option on your KZbin channel, what will happen with this, we can see your video in any language like Hindi, Tamil etc. The video track feature is new on youtube, so please add it quickly so that we can see your video. As Mr. Beast has added video tracks. Thank you
@TodayCurrentAffairs2299
@TodayCurrentAffairs2299 Жыл бұрын
Hello Sir, we are from India and want to see your full video, please add audio track option on your KZbin channel, what will happen with this, we can see your video in any language like Hindi, Tamil etc. The video track feature is new on youtube, so please add it quickly so that we can see your video. As Mr. Beast has added video tracks. Thank you
@TodayCurrentAffairs2299
@TodayCurrentAffairs2299 Жыл бұрын
Hello Sir, we are from India and want to see your full video, please add audio track option on your KZbin channel, what will happen with this, we can see your video in any language like Hindi, Tamil etc. The video track feature is new on youtube, so please add it quickly so that we can see your video. As Mr. Beast has added video tracks. Thank you
@knowledgedose1956
@knowledgedose1956 8 ай бұрын
to have a video track feature you should realize there should be someone who would not only translate but also record the translation with their voice. it is not that translation track is generated automatically or something
Testing JavaScript with Cypress - Full Course
2:39:33
freeCodeCamp.org
Рет қаралды 123 М.
Vite Crash Course | Faster Alternative To CRA
16:24
Traversy Media
Рет қаралды 174 М.
БАБУШКА vs НАСТЯ?? #shorts
00:40
Паша Осадчий
Рет қаралды 8 МЛН
Mac & Cheese Donut @patrickzeinali @ChefRush
00:53
albert_cancook
Рет қаралды 123 МЛН
WebSockets Beginners Tutorial with Socket.IO
1:20:07
freeCodeCamp.org
Рет қаралды 3,6 М.
Learn Text Formatting with HTML in 5 Minutes
5:21
Learndev
Рет қаралды 249
Learn Vite with Evan You
13:35
Vue Mastery
Рет қаралды 254 М.
Visual Guide to the Modern Frontend Toolchain (Vite)
9:18
Lachlan Miller
Рет қаралды 70 М.
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 134 М.
Why is Everyone Using Vite?
7:34
Awesome
Рет қаралды 69 М.
System Design for Beginners Course
1:25:07
freeCodeCamp.org
Рет қаралды 1 МЛН
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,4 МЛН
БАБУШКА vs НАСТЯ?? #shorts
00:40
Паша Осадчий
Рет қаралды 8 МЛН