0
0
Vueframework~5 mins

Nuxt project structure in Vue - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the pages/ directory in a Nuxt project?
The pages/ directory holds Vue components that automatically become routes in the app. Each file corresponds to a URL path, making navigation simple without manual route setup.
Click to reveal answer
beginner
What role does the components/ folder play in a Nuxt project?
The components/ folder stores reusable Vue components like buttons or headers. These components can be used inside pages or other components to keep code organized and avoid repetition.
Click to reveal answer
intermediate
What is the nuxt.config.ts file used for?
This file configures the Nuxt app settings like plugins, modules, global CSS, and build options. It controls how the app behaves and what features are enabled.
Click to reveal answer
intermediate
Explain the purpose of the store/ directory in Nuxt.
The store/ directory contains Vuex store files for managing app-wide state. It helps keep data consistent across pages and components.
Click to reveal answer
intermediate
What is the difference between layouts/ and pages/ directories?
layouts/ holds Vue components that define the common structure (like header, footer) shared by multiple pages. pages/ contains components that represent individual pages or routes.
Click to reveal answer
Which folder in a Nuxt project automatically creates routes based on its files?
Apages/
Bcomponents/
Clayouts/
Dstore/
Where would you place a reusable button component in a Nuxt project?
Astore/
Bpages/
Clayouts/
Dcomponents/
What file controls global settings like plugins and CSS in Nuxt?
Aindex.vue
Bnuxt.config.ts
Cmain.js
Dpackage.json
Which directory manages shared app state in Nuxt?
Astore/
Bpages/
Clayouts/
Dcomponents/
What is the main difference between layouts/ and pages/ folders?
Alayouts/ holds routes, pages/ holds components
Blayouts/ holds reusable UI parts, pages/ holds state files
Clayouts/ defines common page structure, pages/ defines individual pages
Dlayouts/ holds config files, pages/ holds plugins
Describe the main folders in a Nuxt project and their roles.
Think about where you put pages, buttons, headers, app state, and settings.
You got /5 concepts.
    Explain how Nuxt uses the pages/ directory to simplify routing.
    Imagine creating a new page just by adding a file.
    You got /4 concepts.