Getting started
Project structure
What lives in each folder and where to look when you want to change something.
The template follows the standard Nuxt layout at the project root. Nuxt scans pages/, layouts/, components/, composables/, middleware/ and plugins/ automatically, so files there need no registration.
melsami-ui/
├─ assets/ Styles, fonts overrides, images and your SVG icons
├─ components/
│ ├─ ui/ Base* primitives: props and slots only
│ ├─ layout/ App* shell pieces: sidebar, navbar, customizer…
│ ├─ landing/ Landing* blocks rendered from /content
│ └─ pages/ Components used by a single page
├─ composables/ Shared logic (navigation, theme, data providers…)
├─ config/ Plain TypeScript configuration: theme, icons, app settings
├─ content/ Landing page copy and data, one folder per landing
├─ docs/ Short Markdown guides that ship with the code
├─ docs-site/ This documentation, a separate Nuxt app
├─ env/ Environment files loaded by nuxt.config.ts
├─ layouts/ default, auth, blank and landing-page
├─ locales/ UI translations, one folder per language
├─ middleware/ Global auth and permission guards
├─ mocks/ Typed demo data and mock providers
├─ pages/ File-based routes
├─ plugins/ Vuetify registration
├─ public/ Static files served as they are
├─ scripts/ Starter generator, icon sync and screenshots
├─ server/ Nitro server (empty, ready for API routes)
├─ stores/ Pinia stores: auth and preferences
├─ tests/ Vitest unit tests and Playwright end-to-end tests
├─ types/ Component, layout and model types
├─ utils/ Pure functions, all unit tested
├─ app.vue Root component: layout, page title and appearance
├─ i18n.config.ts vue-i18n options and Vuetify messages
├─ nuxt.config.ts Modules, fonts, translations and build options
└─ vuetify.config.ts Vuetify defaults, theme and icon sets
Where to change things
I want to… | Look at |
|---|---|
| Change the name | colours |
| Add or reorder menu items | composables/useNavigation.ts |
| Change the logo | components/ui/BaseAppLogo.vue and public/favicon.svg |
| Add a translation | locales/<code>/*.json |
| Connect a real API | composables/useApi.ts and the providers in mocks/ |
| Change default props of every Vuetify component | vuetify.config.ts |
| Edit the landing page copy | content/template/en.ts and content/template/es.ts |
| Add a page | pages/ plus a menu entry in useNavigation.ts |
| Protect a page with a permission | definePageMeta({ permission }) and types/models/permissions.ts |
The three component tiers
Components are split by how much they know about the application. This keeps the primitives reusable and makes it obvious where a new component belongs.
Folder | Prefix | Can read | Example |
|---|---|---|---|
components/ui/ | Base | Only its props and slots | BaseButton, BaseDataTable, BaseChart |
components/layout/ | App | Stores, the route and the navigation | AppSidebar, AppUserMenu, AppToast |
components/landing/ | Landing | Props fed from /content | LandingHero, LandingPricing |
components/pages/ | Page name | Anything the page needs | OrderQuickView, KanbanCard |
Components are registered without a path prefix, so components/ui/form/BaseForm.vue is used as <BaseForm>.
Chrome and content
Two kinds of text live in two places:
locales/holds the interface: button labels, menu items, validation messages and accessibility labels. It is translated with$t().content/holds marketing copy for the landing pages. You rewrite it for your product, so it is plain TypeScript data, one module per language.
Keep them apart. A label that appears in the app shell belongs in locales/; a headline on your sales page belongs in content/.