This is a testing project to checkout the development status of CakePHP 4. I used this small and simple application as a reference and playground while I am/was involved into the migration process of openITCOCKPIT from CakePHP 2.x to CakePHP 4.x.
This could also be used as an app skeleton for new applications.
And of course, you can also use it to document your blood pressure ¯\_(ツ)_/¯
Don't worry I'm healthy! But due to the migration process my blood pressure raised from time to time^^
- CakePHP 4.x-dev
- AngularJS
- Chart.js
- Bootstrap 4
sudo apt-get install php-intl php-mbstring php-xml php-mysql mysql-server
- PHP >= 7.2
- PHP Composer
- nodejs
git clone https://github.com/nook24/blood-pressure.git
cd blood-pressure/plugins/
git clone -b 4.x-dev https://github.com/it-novum/acl.git Acl
cd ../
composer install
cd webroot/
npm install
cd ../
CREATE USER 'bloodpressure'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS `bloodpressure` DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON `bloodpressure`.* TO 'bloodpressure'@'localhost';
[
'Datasources' => [
'default' => [
'className' => Connection::class,
'driver' => Mysql::class,
'persistent' => false,
'host' => 'localhost',
'username' => 'bloodpressure',
'password' => 'password',
'database' => 'bloodpressure',
]
]
]
[
'Security' => [
'salt' => env('SECURITY_SALT', '__SALT__'),
'cookieKey' => env('SECURITY_COOKIEKEY', '434cb56a-7808-4678-b649-db51e4d32629'),
],
]
bin/cake migrations migrate -p Acl
bin/cake migrations migrate
bin/cake acl_extras aco_sync
bin/cake create_user
bin/cake server
#or
bin/cake server --host 0.0.0.0
Navigate to http://localhost:8765/
#License
The MIT License
Copyright 2019 Daniel Ziegler
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
bin/cake bake model Measurements --no-fixture --no-test