Nuxt.js: Proposal: django-like nested apps.

Created on 7 Oct 2017  路  4Comments  路  Source: nuxt/nuxt.js

Currently we have a single global folder for the app, with subfolders of ~/pages/, ~/components/, ~/store/ etc. For a big project with some submodules it may become quite messy, effectively making modularity impossible. Given an application with two submodules, dashboard and shop, I wonder if we could somehow achieve a file structure like the following:

/
  /apps
    /dashboard
      /pages
      /components
      /store
    /shop
      /pages
      /components
      /store
  nuxt.config.js   # here or anywhere else specifying endpoints for two before-mentioned apps
  ...

So, what do you think?

This feature request is available on Nuxt.js community (#c1610)
question stale

Most helpful comment

This is something I have been trying to achieve for a while using different approaches with some degree of success and some limitations.

Lately I have digging into modules trying to accomplish this exact thing but it would definitely be a HUGE + if Nuxt supported this out of the box the way you have described it.

The flexibility this kind of setup would offer is priceless.

All 4 comments

This is something I have been trying to achieve for a while using different approaches with some degree of success and some limitations.

Lately I have digging into modules trying to accomplish this exact thing but it would definitely be a HUGE + if Nuxt supported this out of the box the way you have described it.

The flexibility this kind of setup would offer is priceless.

Had the same idea. Here is the current workaround
https://github.com/nuxt/nuxt.js/issues/1785

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings