Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Latest commit

 

History

History
43 lines (28 loc) · 839 Bytes

README_en.md

File metadata and controls

43 lines (28 loc) · 839 Bytes

nuxt-layer-sample

Overview

  • This is a sample using Nuxt3 Layers.

System Requirements

  • Node.js - 20.x
  • Yarn - 1.22.x

Library

  • nuxt - 3.6.x

Usage

# package installation
$ yarn

# nuxt-app run - http://localhost:3000, http://localhost:3000/layer1, http://localhost:3000/layer2
$ yarn workspace @nuxt-layer-sample/nuxt-app run dev

# layer1 run - http://localhost:3000/layer1
$ yarn workspace @nuxt-layer-sample/layer1 run dev

# layer2 run - http://localhost:3000/layer2
$ yarn workspace @nuxt-layer-sample/layer2 run dev

Directory structure

├── layer-lib     Nuxt Layer for libraries
├── layer1        Nuxt Layer for /layer1
├── layer2        Nuxt Layer for /layer2
└── nuxt-app      For Nuxt launch

Reference URL