Skip to content

CakeDC/cms-tutorial

 
 

Repository files navigation

CakePHP CMS Tutorial

The completed CMS tutorial application created during https://book.cakephp.org/5/en/tutorials-and-examples/cms/installation.html

Installation

  1. Download Composer or update composer self-update.
  2. Download this source code. git clone https://github.com/cakephp/cms-tutorial.git
  3. Install dependencies with composer
cd cms-tutorial
composer install

Configuration

You can use the default configuration, using a sqlite3 file based database. In that case, no configuration is required. If you want to use your own database, update the 'Datasources' configuration in config/app.php. You'll also need to create a database and run the SQL located in the tutorial.

  • Update the 'Datasources' configuration by:
    • editing config/app.php or config/app_local.php for your local database or
    • 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.
  • Create a database if needed.
  • Run bin/cake migrations migrate to create the database tables.

Running the project

bin/cake server

Then point your browser to http://localhost:8765

You will be redirected to the /users/login page. This is the behavior we configured to request a valid username and password. The CMS Tutorial user Authentication and Authorization to identify the users.

About

The completed CMS tutorial for CakePHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 90.3%
  • CSS 7.4%
  • Shell 1.8%
  • Batchfile 0.5%