Skip to content

stofi/nuxt-starter

Repository files navigation

Nuxt Starter

A modern starter template for building web applications with Nuxt 4.

Tech Stack

  • Nuxt 4 - Vue.js framework with TypeScript
  • Nuxt UI v4 - Beautiful, accessible components with dark mode
  • oxlint + oxfmt - Fast Rust-based linting and formatting
  • Vitest - Unit testing with Nuxt test utils
  • pnpm - Fast, disk space efficient package manager

Features

  • Dark mode support with toggle
  • Nuxt UI components pre-configured
  • Simple placeholder pages (Home, Settings)
  • TypeScript configured and ready
  • oxlint + oxfmt for fast linting and formatting
  • Pre-commit hooks via simple-git-hooks + lint-staged
  • Vitest sanity test to verify setup

Setup

Install dependencies with pnpm:

pnpm install

Development

Start the development server on http://localhost:3000:

pnpm dev

Building for Production

Generate a production build:

pnpm build

Preview the production build:

pnpm preview

Generate a static site:

pnpm generate

Project Structure

nuxt-starter/
├── app/
│   ├── assets/css/        # Global styles
│   ├── layouts/           # Layout components
│   ├── pages/             # Route pages (index, settings)
│   └── app.vue            # Root component
├── tests/                 # Vitest tests
├── public/                # Static assets
├── nuxt.config.ts         # Nuxt configuration
└── vitest.config.ts       # Vitest configuration

Available Scripts

  • pnpm dev - Start development server
  • pnpm build - Build for production
  • pnpm generate - Generate static site
  • pnpm preview - Preview production build
  • pnpm lint - Lint with oxlint
  • pnpm lint:fix - Lint and auto-fix
  • pnpm format - Format with oxfmt
  • pnpm format:check - Check formatting
  • pnpm test - Run tests
  • pnpm test:watch - Run tests in watch mode

Requirements

  • Node.js 18+
  • pnpm 10+

AI-Assisted Development

This template works well with Claude Code. For Nuxt-specific skills (components, routing, composables), use the Nuxt skills in your Claude project.

Learn More

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors