Pinia 

Course & Training

Two to three days of intensive introduction to frontend development with Vue.js 3 and a focus on Pinia state management.

Pinia – the sleek, modern state management for Vue:
With an intuitive API, clear structure, and full TypeScript support, Pinia finally makes global state management straightforward. Quick to learn, flexible to use, and perfectly integrated into the Vue ecosystem – ideal for anyone who loves clean, maintainable code.

In-House Course:

We are happy to conduct tailored courses for your team - on-site, remotely or in our course rooms.

Request In-House Course

   

Content:


Together we incrementally build Vue.js applications with Pinia which illustrates the following topics:

– Introduction to state management:
... - Why state management?
... - Comparison: Local state vs. global state
... - Why Pinia as the successor to Vuex
– Pinia setup:
... - Installation & basic configuration
... - Registering the store in the Vue project
... - Best practices for folder structures
– State:
... - Defining state
... - Reactive values & deep reactivity
... - Data flow overview
... - Exercise: Mini app with global store (e.g., counter, to-do tags, dashboard status)
– Getters:
... - Basics & Syntax
... - Computed Properties in the Store
... - Performance Aspects and Caching
... - Exercise: Filter Logics (e.g., Filtered Todos, User Roles, Dashboard Evaluations)
- Actions:
... - Synchronous & asynchronous actions
... - Error handling
... - Integrating API requests
... - Exercise: API-based actions (loading users, retrieving products, etc.)
- Modular stores & scaling:
... - When to use multiple stores?
... - Cross-store communication
... - Store factories
... - Exercise: Split app into multiple stores (e.g., auth, UI, domain store)
- Persistence & plugins:
... - Persistence strategies (localStorage, IndexedDB)
... - Introduction to Pinia plugins
... - Example: Implementing a persistence plugin
... - Exercise: Developing your own persistence for user settings
- Typing with TypeScript:
... - Type safety in the store
... - Notes on interfaces & return types
... - Sources of error and tips
- Testing Pinia:...
... - Unit tests for stores
... - Mocking external data
... - Behavior-driven tests
... - Exercise: Testing a store in Vitest
- Architecture & best practices:
... - Clean store structures
... - Encapsulation & clear responsibilities
... - Performance tips for large projects
... - When a store is not necessary

The course is based on refined and tested course material with explanation, assignments, course project / code, solution code and further information.


Disclaimer: The actual course content may vary from the above, depending on the trainer, implementation, duration and constellation of participants.

Whether we call it training, course, workshop or seminar, we want to pick up participants at their point and equip them with the necessary practical knowledge so that they can apply the technology directly after the training and deepen it independently.

Goal:

By the end of the course, participants will be able to:
- Install and integrate Pinia securely
- Structure and organize stores
- Use states, getters, and actions effectively
- Plan data flows in larger apps
- Use Pinia with APIs, persistence, plugins, and testing


Duration:

 2 Days (Is individually adapted for in-house courses.)


Form:

Refined mix of explanation, live coding and collaborative build of the comprehensive course application with hands-on focus.


Target Audience:

Software developers with basic knowledge of Vue 3 and JavaScript who want to learn or professionalize modern state management.


Requirements:

Experience in development with JavaScript/TypeScript and a basic understanding of web development.


Preparation:

Each participant will receive a questionnaire and installation instructions after registration. According to the answers we send an individual feedback.

Request In-House Course:

In-House Kurs Anfragen

Waitinglist for public course:

Sign up for the waiting list for more public course dates. Once we have enough people on the waiting list, we will determine a date that suits everyone as much as possible and schedule a new session. If you want to participate directly with two colleagues, we can even plan a public course specifically for you.

Waiting List Request

(If you already have 3 or more participants, we will discuss your preferred date directly with you and announce the course.)

- [Pinia](https://pinia.vuejs.org/introduction.html)