AI-Generated Placeholder — This article was generated by AI and does not represent real content. Replace it with your own writing when you're ready.
This is a placeholder article in the App Dev category.
The Project
Imagine a simple analytics dashboard — two pages, a shared layout, and a handful of API calls. This post walks through how to structure it cleanly in Nuxt 4.
Key Patterns
File-based routing
Every file under app/pages/ becomes a route automatically. No router config needed.
Auto-imports
Components and composables are available globally — no import statements required.
// No import needed — useFetch is auto-imported
const { data } = await useFetch('/api/stats');
Layouts
A shared app/layouts/default.vue wraps every page, keeping the topbar and sidebar out of individual page files.
Take-aways
- Start with file-based routing — it scales surprisingly well
- Lean on auto-imports; hand-writing them is just noise
- Put shared state in composables, not in page components
This is placeholder content. Replace it with a real app dev tutorial when you're ready.