Skip to content

Instantly share code, notes, and snippets.

@jdecode
Last active April 29, 2020 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdecode/a2b923bd34aee1541c0adc9d15673ead to your computer and use it in GitHub Desktop.
Save jdecode/a2b923bd34aee1541c0adc9d15673ead to your computer and use it in GitHub Desktop.
Install CakePHP and Vue

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).

  1. Install CakePHP composer create-project --prefer-dist cakephp/app cakue This will download and install CakePHP in the folder cakue You can call it anything, if you do not give any name, then by default folder name would be app

  2. Install Vue

  3. Merge .gitignore (important, ensures that vendor and node_modules both folders are ignored - at the very least)

@jdecode
Copy link
Author

jdecode commented Apr 29, 2020

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

cakephp-create-project

@jdecode
Copy link
Author

jdecode commented Apr 29, 2020

Installation in progress

cakephp-installing

@jdecode
Copy link
Author

jdecode commented Apr 29, 2020

The installed will prompt to setup permissions once composer has finished installing the dependencies.
Enter Y or just hit Enter (Yes is the default response)

cakephp-permissions-prompt

@jdecode
Copy link
Author

jdecode commented Apr 29, 2020

The folders that are made writable are "logs" and "tmp" (and the sub-folders).

cakephp-set-folder-permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment