fullstack-boilerplate icon indicating copy to clipboard operation
fullstack-boilerplate copied to clipboard

meta: Frontend folder / files structure

Open lewebsimple opened this issue 5 years ago • 3 comments

I'd like to have good code organization for the frontend views and components, i.e. decoupling presentation from logic. We already have routes mapping manually to views, maybe we could look at what Nuxt and Vue-CLI are doing.

lewebsimple avatar Oct 23 '20 02:10 lewebsimple

Sounds good!

kingkong404 avatar Oct 23 '20 16:10 kingkong404

I added vite-plugin-voie which allows Nuxt-style pages/... component mapping to routes with dynamic params. As for the components themselves, I also added vite-plugin-components which allows auto-importing components.

lewebsimple avatar Jan 25 '21 00:01 lewebsimple

The components folder structure / naming conventions are still up for discussion.

lewebsimple avatar Jan 25 '21 00:01 lewebsimple