lautr/initium-nuxt ๐ฅ
๐ Opinionated Nuxt, Tailwind & Storybook monorepo template
inspired by antfu vitesse nuxt
Features
- ๐ Nuxt 3 - SSR, ESR, File-based routing, components auto importing, modules, etc.
- ๐ค Optimized for VSCode usage
- โก๏ธ Vite - Instant HMR
- โจ Vitest - A blazing fast unit test framework
- ๐ Monorepo - workspace setup using pnpm
- ๐ฌ๏ธ Tailwind 4 - the utility-first CSS framework
- ๐๏ธ Storybook - build UI components and pages in isolation
- ๐ Color Mode - dark, light & custom mode integrated in Tailwind and Nuxt
- ๐ฅ The
<script setup>
syntax
- ๐ State Management via Pinia, see ./stores/AuthStore.ts
- ๐งน Vue Macros Explore and extend more macros and syntax sugar to Vue.
- ๐ฅ APIs auto importing - for Composition API, VueUse, Components (localy & from design) and custom composables
- ๐ฆพ TypeScript - JavaScript, but strongly typed and better
Plugins
Nuxt Modules
- VueUse - collection of useful composition APIs.
- ColorMode - dark and Light mode with auto detection made easy with Nuxt.
- Pinia - intuitive, type safe, light and flexible Store for Vue.
- Nuxt Devools - Unleash Nuxt Developer Experience.
Commands
# install all dependencies of the monorepo
pnpm install
# start webapp & storybook
pnpm dev
# start dev webapp
pnpm webapp dev
# build webapp for prod
pnpm webapp build
# start webapp for prod
pnpm webapp start
# start dev storybook
pnpm design dev
IDE
This Template is designed to provide great DX with VS Code and Volar.
Usage
GitHub Template
Create a repo from this template on GitHub.
Clone to local
If you prefer to do it manually with the cleaner git history
npx degit lautr/initium-nuxt my-nuxt3-app
cd my-nuxt3-app
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm