ozee31/cakephp-starter

CakePHP skeleton app

Installs: 27

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 2

Forks: 0

Open Issues: 0

Language:CSS

Type:project

1.2.0 2016-10-19 13:39 UTC

This package is not auto-updated.

Last update: 2024-10-26 19:37:51 UTC


README

Build Status License

A skeleton for creating applications with CakePHP 3.x.

The framework source code can be found here: cakephp/cakephp.

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

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.

Front

Run npm install

Configuration

Read and edit config/app.php and setup the 'Datasources' and any other configuration relevant for your application.

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

Deployment

Run npm run build and change debug mode in app.php

Subdirectory configuration

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/'