Choorai

60분 완주 챌린지

Step 1/6

0%
Estimated time: 15 min
Vue 3

Frontend: Vue 3 + Vite

We'll build a frontend using Vue 3 and Vite. With its HTML-like template syntax, even beginners can get started easily.

TL;DR (3-line summary)

  • Create a Vue project with npm create vite@latest
  • Install Tailwind CSS for styling
  • Ask AI to "create a to-do list UI"

Terms Before Step 2

  • Component: A reusable unit that makes up the UI.
  • Reactive Data: Data that updates the UI automatically when values change.
  • Dev Server: Local runtime to preview your app instantly.
  • Build: Converting your app into deployable output files.

1Create Project

Open your terminal, navigate to the desired folder, and run the following commands.

Terminal
# Create project
npm create vite@latest my-todo -- --template vue-ts

# Navigate to folder
cd my-todo

# Install dependencies
npm install

React vs Vue

Vue uses an HTML-like template syntax:

  • v-model for easy two-way binding
  • v-if, v-for for intuitive conditionals/loops
  • Single File Component (.vue) combining HTML/CSS/JS

Term Tip: CLI / Dependencies

  • CLI: Running project tools with terminal commands.
  • npm: The package manager that installs and updates libraries.
  • Dependency: An external library your app needs to run.
  • Deep dive: Tools and terminal basics

2Install Tailwind CSS

Installing Tailwind CSS lets you create beautiful UIs using just classes.

Terminal
# Install Tailwind
npm install -D tailwindcss postcss autoprefixer

# Generate config files
npx tailwindcss init -p

Open the tailwind.config.js file and modify it as follows:

tailwind.config.js
/** @type {import('tailwindcss').Config} */
export default {
  content: [
    "./index.html",
    "./src/**/*.{vue,js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

Open src/style.css and add the following at the top:

src/style.css
@tailwind base;
@tailwind components;
@tailwind utilities;

3Run Dev Server

Terminal
npm run dev

Open http://localhost:5173 in your browser to see the default Vite + Vue page.

Success!

If you see the Vue logo, the basic frontend setup is complete.

4Build UI with AI

Now let's ask AI to create a to-do management UI. Copy the prompt below and paste it into Antigravity or ChatGPT.

AI Prompt

복사해서 사용하세요

"Build a to-do management app with Vue 3 + TypeScript + Tailwind. Requirements: 1. Main layout in src/App.vue (header + content) 2. List UI showing to-do items 3. New to-do input form 4. Completion checkbox (toggle) 5. To-do delete button 6. Use ref() for local data management for now (we'll connect an API later) Styling: - Dark mode background (bg-gray-900) - Cards with bg-gray-800 - Completed items with strikethrough File structure: - src/App.vue - src/components/TodoForm.vue - src/components/TodoItem.vue - src/types/index.ts"

Send this prompt to your AI. If you're using Antigravity, press Cmd+L to open the agent panel.

Vue 3 Composition API

  • <script setup> syntax recommended
  • ref() for reactive state management
  • v-model for input binding

5Expected Result

After applying the AI-generated code, you should see a screen like this:

To-Do List

Enter a new to-do...
Add
Learn Vue 3
Create project

The complete example code is available in the GitHub repository .

Vue Frontend Completion Checklist

0/4 완료

Last updated: February 22, 2026 · Version: v0.0.1

Send Feedback

Opens a new issue page with your message.

Open GitHub Issue