Installation

This boilerplate is a modern Nuxt 3 starter configured with useful development tools and best practices.

πŸ“¦ Prerequisites

Make sure you have the following installed:

  • Node.js (version 18 or above recommended)
  • pnpm (preferred), or npm/yarn

To install pnpm globally if not already:

npm install -g pnpm

πŸš€ Steps to Install and Run the Project

Clone the repository:

git clone https://github.com/heydayle/nuxt-boilerplate.git
cd nuxt-boilerplate

Install dependencies:

pnpm install

Alternatively, use npm install or yarn depending on your preference. Start the development server:

pnpm dev
By default, the app will be running at:
πŸ‘‰ http://localhost:3000


// if the error of nuxt-content please run this
pnpm approve-builds

βš™οΈ Build for Production

To generate a production build:

pnpm build

To preview the production build locally:

pnpm preview

πŸ›  Included Features

  • Nuxt 3 (ready for v4)
  • TypeScript
  • ESLint + Prettier
  • Vueuse
  • Next Auth
  • Pinia
  • NuxtUI v3
  • TailwindCSS v4
  • Auto imports for components and composables
  • Runtime config via .env and app.config.ts

πŸ“„ Environment Variables

  • Duplicate example.env file in the root and rename to .env of your project to configure runtime variables:
# Your secret key
GG_CLIENT_ID        =
GG_CLIENT_SECRET    =
GG_API_KEY          =

πŸ“ Project Structure

nuxt-boilerplate/
    β”œβ”€β”€ app/
    β”‚    β”œβ”€β”€ assets/            # Static assets (css, images, fonts, etc.)
    β”‚    β”œβ”€β”€ components/        # Reusable Vue components
    β”‚    β”œβ”€β”€ composables/       # Vue composables
    β”‚    β”œβ”€β”€ layouts/           # Page layouts
    β”‚    β”œβ”€β”€ middleware/        # Nuxt middleware
    β”‚    β”œβ”€β”€ pages/             # Application pages
    β”‚    β”‚      └── index.vue   # Homepage
    β”‚    β”œβ”€β”€ plugins/           # Nuxt plugins
    β”‚    β”œβ”€β”€ utils/             # Utility functions
    β”‚    β”œβ”€β”€ app.config.ts      # App configuration
    β”‚    └── app.vue            # App root
    β”œβ”€β”€ i18n/                   # i18n 
    β”‚    └── locales/           # Language json
    β”œβ”€β”€ content/                # Nuxt Content files
    β”œβ”€β”€ public/                 # Public static files
    β”œβ”€β”€ server/                 # Server API endpoints and middleware
    β”œβ”€β”€ stores/                 # Pinia stores
    β”œβ”€β”€ .env                    # Environment variables
    β”œβ”€β”€ content.config.ts       # Nuxt Content configuration
    β”œβ”€β”€ nuxt.config.ts          # Nuxt configuration
    β”œβ”€β”€ README.md               
    └── tsconfig.json           # TypeScript configuration
Β© 2025 Devaloka. All rights reserved.