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)

☆ Read later

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.

Keyboard shortcuts

Keys available in a lesson
KeyAction
[ or Alt + ←Go to the previous lesson
] or Alt + →Go to the next lesson
?Open this list
EscClose this list

The keys do not work while the cursor is in a code editor or an input field.