Skip to content

Commit 907c959

Browse files
authored
Merge pull request #17 from CakeDC/feature/update-cms-tutorial
Feature/update cms tutorial
2 parents c07ed79 + b61ad22 commit 907c959

File tree

10 files changed

+1111
-786
lines changed

10 files changed

+1111
-786
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ Thumbs.db
3232
nbproject/* # NetBeans
3333
.vscode # Visual Studio Code
3434
.sass-cache/ # Sass preprocessor
35+
.idea
36+
config/Migrations/schema-dump-default.lock
37+
database
38+
cms-tutorial-database.sqlite

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,35 @@ https://book.cakephp.org/5/en/tutorials-and-examples/cms/installation.html
66
## Installation
77

88
1. Download [Composer](https://getcomposer.org/doc/00-intro.md) or update `composer self-update`.
9-
2. Download this source code.
9+
2. Download this source code. `git clone https://github.com/cakephp/cms-tutorial.git`
1010
3. Install dependencies with composer
1111

1212
```bash
13+
cd cms-tutorial
1314
composer install
1415
```
1516

1617
## Configuration
1718

19+
You can use the default configuration, using a sqlite3 file based database. In that case, no configuration
20+
is required.
21+
If you want to use your own database, update the `'Datasources'` configuration in `config/app.php`.
22+
You'll also need to create a database and run the SQL located in the tutorial.
23+
1824
* Update the `'Datasources'` configuration by:
1925
* editing `config/app.php` or `config/app_local.php` for your local database or
2026
* edit `config/bootstrap.php` to enable use of a `.env` file (uncomment the section that loads the `.env` file) (and provide the `config/.env` file.
2127
* Create a database if needed.
2228
* Run `bin/cake migrations migrate` to create the database tables.
2329

30+
31+
## Running the project
32+
33+
```bash
34+
bin/cake server
35+
```
36+
37+
Then point your browser to http://localhost:8765
38+
39+
You will be redirected to the `/users/login` page. This is the behavior we configured to request a valid
40+
username and password. The CMS Tutorial user Authentication and Authorization to identify the users.

0 commit comments

Comments
 (0)