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
andapp.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