MCPcopy Index your code
hub / github.com/areindl/nuxt-structure-with-modules

github.com/areindl/nuxt-structure-with-modules @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2 symbols 4 edges 4 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🙋🏽‍♂️ Domain-Driven Design & Nuxt - Using Nuxt Modules to structure large Nuxt Apps

⚡️ Talk at NUXT NATION by Anton Reindl

In my talk in 2021, I introduced Domain Driven Design and talked about structuring apps according to domain modules. I and demonstrated how to use Nuxt 2 modules to create independent submodules including Vuex modules and routes.

The original Nuxt 2 example can be found in a legacy here.

🚀 Nuxt 3

I reimplemented the example of "Anton's Biketours" in Nuxt 3. This example implements a fresh Nuxt 3 with an landing page ( pages/index.vue ) and one domain-module module, namely the blog-module imported from .modules/blog . The module has its own components, composable and pages folder to better separate the domain from the rest of the app.

I also recommend to look at the documentation.

Scope

npm install

Development

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

npm run dev

Production

Build the application for production:

npm run build

Checkout the deployment documentation.

📚 Resources

  • [x] Slides of this Talk
  • [x] Blog post Domain-Driven Design in Nuxt Apps by Filip Rakowski
  • [x] Recommended DDD-Books:
  • [x] Domain-Driven Design: Tackling Complexity in the Heart of Software - by Eric Evans
  • [x] Implementing Domain-Driven Design by Vaughn Vernon
  • [x] Domain-Driven Design Distilled by Vaughn Vernon

Core symbols most depended-on inside this repo

setup
called by 0
modules/blog/index.ts
useArticles
called by 0
modules/blog/composables/useArticles.ts

Shape

Function 2

Languages

TypeScript100%

Modules by API surface

modules/blog/index.ts1 symbols
modules/blog/composables/useArticles.ts1 symbols

For agents

$ claude mcp add nuxt-structure-with-modules \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact