Vue.js Fundamentals Course / Chapter 1 — Getting Started with Vue (lessons 1–5) / Lesson 1
Building a Minimal Vue App with Vite
Time needed: about 3 min (estimate)
Reading settings
These settings are remembered on this device only.
You can try the opening of this lesson without an account.
How this course works
This course is an introduction to Vue 3.
It assumes you can already write JavaScript, and it uses the Composition API (<script setup>) consistently from the very first lesson, touching the Options API only for comparison.
In the final lesson, we go over how Vue differs from React so you can decide for yourself which one to reach for.
All code and test output here comes from actually running Vue 3.5.13, Vite 6, Vitest 3 + @vue/test-utils, and Node.js v26.
Creating a project with Vite
Vite is the standard way to start a new Vue project.
Add --template vue and you get a Vue-ready scaffold.
Run npm run dev to start the dev server, and any file you save reflects on screen instantly (HMR).
Create a free account to keep reading
With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.
Report a problem with this lesson
Log in to send a report.