Pinia-ToDoList

Aprendiendo a usar Pinia siguiendo el curso de "The Net Ninja" - Pinia Crash Course

https://www.youtube.com/playlist?list=PL4cUxeGkcC9hp28dYyYBy3xoOdoeNw-hD

Iniciar el proyecto

npm init vue@latest

Luego decir no a todas las opciones para tener un proyecto basico

Project Setup

npm install  (instalar las dependencias)

Pinia installation and setup

npm install pinia (Instala Pinia en el proyecto)

Importar Pinia en el archivo main.js

import "./assets/main.css";
import { createApp } from "vue";
import App from "./App.vue";
import { createPinia } from "pinia";

const pinia = createPinia();
createApp(App).use(pinia).mount("#app");

Compile and Hot-Reload for Development

npm run dev  (Inicia el servidor)

Compile and Minify for Production

npm run build    (Crea el archivo dist cuando se va a realizar el deployment)

Creation of Database using Json server

npm install -g json-server

Lauching json-server

(Estando en la caperta del proyecto podemos lanzar el json-serve con este comando)

json-server -w ./data/db.json

Recommended IDE Setup

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.