Answer the question
In order to leave comments, you need to log in
What should be the structure of a vue project with an admin panel?
I am planning to create a project with vue.
The project consists of several pages of the site and the admin panel.
After reviewing several projects on github, I can’t draw a conclusion about the general structure, everyone somehow does it differently.
It's about the src directory.
Page 1 :
src:
--|__ ...
--|__ components
------| __ Button.vue
------| __ Dropdown.vue
------| __ .............
--|__ layout/dashboard
------| __ content.vue
------|__ ...............
--|__ pages (view)
--|__ ...
src:
--|__ ...
--|__ components
------| __ Button.vue
------| __ Dropdown.vue
------| __ .............
--|__ pages (view)
------|__ layout/dashboard
--|__ ...
src:
--|__ ...
--|__ components
------| __ pages (view)
-------------| __ .............
------| __ dashboard
------------| __ .............
------| __ uicomponents
-------------| __ Button.vue
-------------| __ Dropdown.vue
-------------| __ .............
--|__ ...
Answer the question
In order to leave comments, you need to log in
Do I understand correctly that components are independent objects that can be used on different pages (in different places on the page): button, navigation, popup, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question