CakePHP + Vue Prerequisite : composer, npm, Ubuntu (same commands will run on Windows/Mac as well, if everything else is configured correctly, and you know where to run the commands).
-
Install CakePHP
composer create-project --prefer-dist cakephp/app cakue
This will download and install CakePHP in the foldercakue
You can call it anything, if you do not give any name, then by default folder name would beapp
-
Install Vue
-
Merge
.gitignore
(important, ensures thatvendor
andnode_modules
both folders are ignored - at the very least)
I have the folder set to /var/www/html/dev
So my CakePHP will be installed inside this folder
composer create-project --prefer-dist cakephp/app cakue