- I highly recommend you to use this repository as a template only.
- Consider the folder
backend
andfrontend
as its own separate repositories. It is merged into one for ease. frontend
contains the Frontend AngularJS code, a basic site.backend
contains the Backend CakePHP code.presentation.pdf
are slides I presented at CakeFest 2016.
You are welcome to get createive in your setup. This is how i have my repositories setup:
blob.dev
points tofrontend
api.blob.dev
points tobackend
If you prefer to use a different frontend
domain, be sure to add that to the $origin
in backend/src/Routing/Filter/CorsFilter.php
.
The main logic / core lies in Dispatch Filters. Read more about it here: http://book.cakephp.org/3.0/en/development/dispatch-filters.html
Run the following command inside frontend
folder:
$ bower install
Set it up like you would setup any CakePHP 3 app. That is run the composer
command inside backend
folder:
$ composer install
Run migrations:
$ bin/cake migrations migrate