coreui-free-vue-laravel-admin-template icon indicating copy to clipboard operation
coreui-free-vue-laravel-admin-template copied to clipboard

Question on directory structure

Open JohnyProkie opened this issue 4 years ago • 4 comments

Hi! Just wondering, why did you choose to have two folders in root, one for Laravel and one for CoreUI? I like CoreUI, I was looking for admin template for personal project. I was looking for something to be built on Vue and for Laravel and without parts in DB. And of course it was supposed to be pretty and preferably free. Here is a match from the biggest part, but recently I learned I cannot deploy to Heroku with this directory structure, see part of quoted error below:

A PHP app on Heroku requires a 'composer.json' at the root of
the directory structure, or an 'index.php' for legacy behavior.

In the end, composer package with Laravel dependency would be more suitable, but maybe you encountered some issues while searching for this option?

JohnyProkie avatar Mar 09 '20 21:03 JohnyProkie

Separating the frontend application from the backend application is good practice. It is used so that only one of these applications can be easy replaced, for example if there is no further support for the particular technology. Folder with CoreUI can be easily moved to a folder containing Laravel.

rakieta2015 avatar Mar 12 '20 18:03 rakieta2015

Been there too! In many cases is more efficient the front-end into resource path in laravel application. If you need only one repo probably you want deploy one only app.

a21ns1g4ts avatar Jul 01 '20 03:07 a21ns1g4ts

I am a little confused on the separation as well... both ./laravel and ./coreui folders have a public subfolder... but ./coreui/public does not work because it's missing ./coreui/public/js/app.js. So if you truly want to separate the "server" from the "client", shouldn't all the frontend components (like scss, css, javascripts, html, vue, etc) be moved to ./coreui and the only thing in ./laravel should be php files and the sqlite database?

LeftPinkie avatar Jul 06 '20 22:07 LeftPinkie

@LeftPinkie That's what basically was my concern. On this line, coreui gets copied to Laravel public folder anyway and blade template hangs coreui from this line, hence there's no separation at all. In the end, I just moved coreui to laravel resources, created two directives for webpack (one for admin, one for front), and deployed to custom server anyway, to get rid of heroku limitations.

JohnyProkie avatar Jul 08 '20 14:07 JohnyProkie