Skip to content

anasbn3issa/Nuxt3-piniaStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo Pinia Nuxt.js 3

This is a demo project to show how to use Pinia with Nuxt.js 3.

Well explained project on medium

Files of interest

~/nuxtconfig.ts : every nuxt.js project contains this file where we declare all our project's configs 

~/store/user.js : where we're defining our user store . 

~/app.vue : where we'll be calling the store .

Final Store Using VueJS Devtools

Screenshot from 2023-01-20 23-50-26

Setup

Make sure to install the dependencies:

# yarn
yarn install

# npm
npm install

Development Server

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

npm run dev