Development

Nuxt 3 with Pinia

Intermediate
1h

By: Shaun Pelling

Nuxt 3 with Pinia

Overview

Nuxt 3 with Pinia represents the integration of a versatile and modern Vue.js framework with a flexible state management library. Nuxt 3, the latest version of the Nuxt framework, provides server-side rendering, static site generation, and a powerful module system. It's designed to improve performance and developer experience, with features like auto-importing components and composables, and improved support for Vue 3's Composition API.

Pinia, being the successor to Vuex, offers a more refined and simpler state management experience. It is fully compatible with the Composition API and is designed to work well with TypeScript. Pinia's stores are reactive out of the box and can be accessed from any component, making state management straightforward and efficient.

In a course on Nuxt 3 with Pinia, developers would learn how to structure and manage global state within a Nuxt application, use server-side rendering capabilities for SEO benefits and faster page loads, and leverage Pinia for state management to build scalable, maintainable applications. This combination allows for building modern web applications that are both performant and easy to manage.

Skills Learned

  • Initialize a Nuxt.js project
  • Integrate Material Icons
  • Implement Tailwind CSS in Nuxt
  • Utilize JSON Server for mock data
  • Develop a product card component
  • Set up a Pinia store
  • Manage state with Pinia in Nuxt
  • Construct a shopping cart page
  • Calculate total price in the cart
  • Implement item deletion from the cart
  • Increase product quantities
  • Decrease product quantities

Modules

1. Making a Nuxt App

1.1 Introduction2 min
1.2 Creating a Nuxt App6 min
1.3 Adding Material Icons3 min
1.4 Adding Tailwind CSS9 min
1.5 Using JSON Server7 min
1.6 Product Card Component6 min

2. Using Pinia with Nuxt

2.1 Adding a Pinia Store3 min
2.2 Fetching Initial Store State5 min
2.3 Making the Cart Page5 min
2.4 Cart Total Price4 min
2.5 Deleting Items6 min
2.6 Increasing Product Quantity9 min
2.7 Decreasing Product Quantity6 min
2.8 Adding Products to the Cart8 min
2.9 Adding a Loading State4 min
2.10 Showing the Total Number of Products5 min

Ready to Elevate Your Team's Learning?

Talk with our sales team to see how StormWind can transform the way your organization trains and grows.

CONTACT SALES