Skip to content

Latest commit

 

History

History
123 lines (82 loc) · 2.36 KB

File metadata and controls

123 lines (82 loc) · 2.36 KB

Nuxt3 & vue-Shadcn & pinia & tailwindcss

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.

Table of Contents

Documentations

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

Example images

Dashboard

image

Login

image

Billing

image

How to add components (shadcn)

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

Setup

Make sure to install dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

Development Server

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

# npm
npm run dev

# pnpm
pnpm dev

# yarn
yarn dev

# bun
bun run dev

Production

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.