This template is a starter point if you want to power Nuxt 3 with Pinia.
The stores are located in the stores
directory and are automatically registered in the nuxt.config.ts file. You can also use the useStore
helper to access the main store in your components and create new stores. For more info, see the Pinia documentation and the Nuxt 3 + Pinia section.
For Nuxt3, look at the documentation.
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
Check out the deployment documentation for more information.