2017 © Pedro Peláez
 

project cakephp-starter

CakePHP skeleton app

image

ozee31/cakephp-starter

CakePHP skeleton app

  • Wednesday, October 19, 2016
  • by ozee31
  • Repository
  • 1 Watchers
  • 3 Stars
  • 20 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 11 % Grown

The README.md

CakePHP Application Skeleton whith Twig and Webpack

Build Status License, (*1)

A skeleton for creating applications with CakePHP 3.x., (*2)

The framework source code can be found here: cakephp/cakephp., (*3)

Installation

CakePHP

  1. Download Composer or update composer self-update.
  2. Run php composer.phar create-project --prefer-dist ozee31/cakephp-starter [app_name].

If Composer is installed globally, run, (*4)

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., (*5)

Front

Run npm install, (*6)

Configuration

Read and edit config/app.php and setup the 'Datasources' and any other configuration relevant for your application., (*7)

Front

Architecture

  • /front/build/* : webpack configuration
  • /front/src/* : all front sources (es2015 + scss...)

Debug mode

Run webpack web server with the command npm run dev, (*8)

Deployment

Run npm run build and change debug mode in app.php, (*9)

Subdirectory configuration

For exemple if url access is /subdir/ instead of /, (*10)

change in config/app.php :, (*11)

'Webpack' => [
  'assets' => [
    'dev' => 'http://localhost:3003/subdir/app.js',
    'config' => 'assets.json',
  ],
],

and in front/build/config.js, (*12)

assets_url: '/subdir/'

The Versions