|
1 | | -# CakePHP Application Skeleton |
| 1 | +# CakePHP CMS Tutorial |
2 | 2 |
|
3 | | -[](https://travis-ci.org/cakephp/app) |
4 | | -[](https://packagist.org/packages/cakephp/app) |
5 | | - |
6 | | -A skeleton for creating applications with [CakePHP](https://cakephp.org) 3.x. |
7 | | - |
8 | | -The framework source code can be found here: [cakephp/cakephp](https://github.com/cakephp/cakephp). |
| 3 | +The completed CMS tutorial application created during |
| 4 | +https://book.cakephp.org/3.0/en/tutorials-and-examples/cms/installation.html |
9 | 5 |
|
10 | 6 | ## Installation |
11 | 7 |
|
12 | 8 | 1. Download [Composer](https://getcomposer.org/doc/00-intro.md) or update `composer self-update`. |
13 | | -2. Run `php composer.phar create-project --prefer-dist cakephp/app [app_name]`. |
14 | | - |
15 | | -If Composer is installed globally, run |
16 | | - |
17 | | -```bash |
18 | | -composer create-project --prefer-dist cakephp/app |
19 | | -``` |
20 | | - |
21 | | -In case you want to use a custom app dir name (e.g. `/myapp/`): |
22 | | - |
23 | | -```bash |
24 | | -composer create-project --prefer-dist cakephp/app myapp |
25 | | -``` |
26 | | - |
27 | | -You can now either use your machine's webserver to view the default home page, or start |
28 | | -up the built-in webserver with: |
| 9 | +2. Download this source code. |
| 10 | +3. Install dependencies with composer |
29 | 11 |
|
30 | 12 | ```bash |
31 | | -bin/cake server -p 8765 |
| 13 | +composer install |
32 | 14 | ``` |
33 | 15 |
|
34 | | -Then visit `http://localhost:8765` to see the welcome page. |
35 | | - |
36 | | -## Update |
37 | | - |
38 | | -Since this skeleton is a starting point for your application and various files |
39 | | -would have been modified as per your needs, there isn't a way to provide |
40 | | -automated upgrades, so you have to do any updates manually. |
41 | | - |
42 | 16 | ## Configuration |
43 | 17 |
|
44 | | -Read and edit `config/app.php` and setup the `'Datasources'` and any other |
45 | | -configuration relevant for your application. |
46 | | - |
47 | | -## Layout |
48 | | - |
49 | | -The app skeleton uses a subset of [Foundation](http://foundation.zurb.com/) CSS |
50 | | -framework by default. You can, however, replace it with any other library or |
51 | | -custom styles. |
| 18 | +Copy `config/app.default.php` to `config/app.php` and setup the `'Datasources'` configuration. |
| 19 | +You'll also need to create a database and run the SQL located in the tutorial. |
0 commit comments