Example project using Nuxt3 with shadcn-vue, pinia and tailwindcss.
Run it using npm, pnpm, yarn or bun. Settings on host and port can be changed in nuxt.config.ts.
Link | Description |
---|---|
Nuxt3 | Nuxt3 is a progressive Vue framework |
Vue3 | Vue3 is a progressive JavaScript framework |
Shadcn-vue | Shadcn-vue is a Vue3 component library |
Pinia | Pinia is a Vue3 store library |
Tailwindcss | Tailwindcss is a utility-first CSS framework |
To add a new component we need to use npx:
npx shadcn-vue@latest add XXXXX
Read more about it here (step 9): https://www.shadcn-vue.com/docs/installation/nuxt.html
Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run preview
Check out the deployment documentation for more information.