nuxt-ui-pro / dashboard

A dashboard template made with Vue and Nuxt UI Pro.
https://dashboard-template.nuxt.dev
355 stars 77 forks source link

recommended way to mix with saas #31

Closed lammerfalcon closed 2 months ago

lammerfalcon commented 2 months ago

it is better to have 2 separate repos SaaS and Dashboard, or for small SaaS better to combine 2 repos in 1?) i know there is abstraction question, but I wonder how you imagine combining these two templates

benjamincanac commented 2 months ago

You can totally mix them up! I'd start with the saas template and then copy the dashboard template layouts / pages / components inside. You will have to rename the default.vue layout from dashboard into dashboard.vue and specify this in your dashboard pages using definePageMeta: https://nuxt.com/docs/api/utils/define-page-meta#defining-layout

lammerfalcon commented 2 months ago

You can totally mix them up! I'd start with the saas template and then copy the dashboard template layouts / pages / components inside. You will have to rename the default.vue layout from dashboard into dashboard.vue and specify this in your dashboard pages using definePageMeta: https://nuxt.com/docs/api/utils/define-page-meta#defining-layout

Thank you! I started my SaaS boilerplate with Nuxt UI SaaS + Dashboard + NuxtHub. Very impressive ecosystem i think. Easy to use, easy to deploy!) Instead of writing definePageMeta, i create middleware where i set layout if route path starts with /app, works perfect