A skeleton for creating applications with CakePHP 3.x.
The framework source code can be found here: cakephp/cakephp.
- Download Composer or update
composer self-update
. - Run
php composer.phar create-project --prefer-dist ozee31/cakephp-starter [app_name]
.
If Composer is installed globally, run
composer create-project --prefer-dist ozee31/cakephp-starter [app_name]
You should now be able to visit the path to where you installed the app and see the default home page.
Run npm install
Read and edit config/app.php
and setup the 'Datasources' and any other
configuration relevant for your application.
- /front/build/* : webpack configuration
- /front/src/* : all front sources (es2015 + scss...)
Run webpack web server with the command npm run dev
Run npm run build
and change debug mode in app.php
For exemple if url access is /subdir/
instead of /
change in config/app.php :
'Webpack' => [
'assets' => [
'dev' => 'http://localhost:3003/subdir/app.js',
'config' => 'assets.json',
],
],
and in front/build/config.js
assets_url: '/subdir/'