Skip to content

Instantly share code, notes, and snippets.

@jdecode
Last active April 29, 2020 11:06
Show Gist options
  • Select an option

  • Save jdecode/a2b923bd34aee1541c0adc9d15673ead to your computer and use it in GitHub Desktop.

Select an option

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

jdecode commented Apr 29, 2020

Copy link
Copy Markdown
Author

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

jdecode commented Apr 29, 2020

Copy link
Copy Markdown
Author

Installation in progress

cakephp-installing

@jdecode

jdecode commented Apr 29, 2020

Copy link
Copy Markdown
Author

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

jdecode commented Apr 29, 2020

Copy link
Copy Markdown
Author

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