The completed CMS tutorial application created during https://book.cakephp.org/5/en/tutorials-and-examples/cms/installation.html
- Download Composer or update
composer self-update. - Download this source code.
git clone https://github.com/cakephp/cms-tutorial.git - Install dependencies with composer
cd cms-tutorial
composer installYou 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.phporconfig/app_local.phpfor your local database or - edit
config/bootstrap.phpto enable use of a.envfile (uncomment the section that loads the.envfile) (and provide theconfig/.envfile.
- editing
- Create a database if needed.
- Run
bin/cake migrations migrateto create the database tables.
bin/cake serverThen 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.