Vue.js / Nuxt.js

Vue.js / Nuxt.js

FRONTEND

Phát triển frontend với Vue.js là framework tiên tiến và Nuxt.js cho ứng dụng full-stack. Kiến trúc dựa trên component với Composition API, hệ thống reactivity hiệu suất cao, và rendering kết hợp (SSR, SSG, SPA) để xây dựng ứng dụng web nhanh và dễ bảo trì.

Bạn sẽ học được gì

Vue.js với Composition API, <script setup> và hỗ trợ TypeScript

Nuxt.js với Auto-import, routing dựa trên file và Server Component

Hệ thống reactivity mạnh mẽ (ref, reactive, computed, watch)

Single File Component (.vue) với template, script và style có phạm vi

Nuxt Server Engine cho API route, middleware và logic phía server

Quản lý trạng thái với Pinia (store module và TypeScript-first)

Lấy dữ liệu với useFetch, useAsyncData và cache phía server

Styling với TailwindCSS, UnoCSS, CSS Modules hoặc Sass tích hợp

Kiểm thử toàn diện (Vitest, Vue Test Utils, Playwright/Cypress E2E)

Hiệu suất (lazy loading, code splitting, tối ưu Image, Nitro engine)

Chủ đề chính cần nắm vững

Những khái niệm quan trọng nhất để hiểu công nghệ này và thành công trong phỏng vấn

1

Vue.js: reactivity, Virtual DOM, template, directive (v-if, v-for, v-model)

2

Options API vs Composition API: setup(), ref(), reactive(), computed()

3

Lifecycle hook: onMounted, onUpdated, onUnmounted, watch, watchEffect

4

Component: props, emits, slots, provide/inject, defineExpose

5

Directive: v-bind, v-on, v-model, v-if/v-show, v-for với :key, directive tùy chỉnh

6

Hệ thống reactivity: ref vs reactive, toRefs, unref, shallow ref, readonly

7

Composable: tái sử dụng logic, hook tùy chỉnh, quản lý trạng thái

8

Kiến trúc Nuxt.js: pages/, components/, layouts/, middleware/, server/

9

Routing: routing dựa trên file, dynamic route, nested route, route middleware

10

Lấy dữ liệu: useFetch, useAsyncData, $fetch, chiến lược cache, SSR data

11

Server route: API endpoint, server middleware, tích hợp database

12

Quản lý trạng thái: Pinia store, getter, action, lưu trữ trạng thái

13

Nuxt module: auto-import, @nuxt/image, @nuxtjs/i18n, nuxt-security

14

Chế độ rendering: SSR, SSG, SPA, rendering kết hợp, useNuxtApp

15

Kiểm thử: test component (Vitest, Vue Test Utils), E2E (Playwright), mock

16

Hiệu suất: lazy component, prefetch, tree-shaking, tối ưu Nitro

17

SEO: useSeoMeta, useHead, tạo sitemap, Open Graph

18

Triển khai: Nuxt layer, cấu hình môi trường, hosting Vercel/Netlify/Node.js