Personal Nuxt boilerplate for rapid project setup and best practices.
- Nuxt v4 (latest major)
- Vue 3
- TypeScript
- Tailwind CSS v4 (JIT mode)
- Pinia (state management)
- VueUse (composition utilities)
- SVGO integration
- Pre-configured ESLint & Prettier
- Example components, stores, and utilities
-
Install dependencies:
npm install # or yarn install # or pnpm install
-
(Optional) Create a .env file:
cp .env.example .env
-
Run the development server:
npm run dev # or yarn dev # or pnpm dev
-
Open http://localhost:3000 to view your app.
- Edit
app/app.vueor add pages inapp/pages/to start building your app. - Add components in
app/components/. - Update global styles in
app/assets/css/tailwind.css. - Use Pinia stores in
app/stores/and utilities inapp/utils/. - Add or update types in
app/types/.
- Update
nuxt.config.tsandtsconfig.jsonas needed. - Add environment variables in
.env(see.env.exampleif available). - Replace or extend the example components, stores, and utilities.
Deploy easily to Vercel or your preferred platform.
nuxt-boilerplate/
├── app/
│ ├── app.vue
│ ├── assets/
│ │ └── css/
│ │ └── tailwind.css
│ ├── components/
│ ├── pages/
│ ├── stores/
│ ├── types/
│ └── utils/
├── public/
├── nuxt.config.ts
├── tailwind.config.ts
├── tsconfig.json
└── package.json
- Nuxt: Vue framework for server-side rendering, static site generation, and more
- Vue: JavaScript framework
- Pinia: State management
- Tailwind CSS: Utility-first CSS framework
- VueUse: Vue composition utilities
- ESLint & Prettier: Code linting and formatting
- TypeScript: Strongly typed language
- SVGO: SVG optimization
This project is licensed under the terms found in the LICENSE file.
Created by Son H.Do