/nuxt3-repository-pattern

Example implementation of the repository pattern in Nuxt 3.

Primary LanguageVue

Nuxt 3 repository pattern

This repository contains the code described in article Nuxt 3 | Repository pattern: organising and managing your calls to APIs (Typescript). In it we use the repository design pattern for efficient organisation and management of API calls in Nuxt 3.

Setup

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

Development Server

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

# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev