friendsofcake / crud-demo-app
CakePHP + CRUD + CRUD View + 搜索演示应用
dev-master
2024-09-17 16:01 UTC
Requires
- php: >=8.1
- cakephp/cakephp: ^5.1
- cakephp/migrations: ^4.4
- cakephp/plugin-installer: ^2.0
- friendsofcake/crud-view: ^0.50.0
- friendsofcake/search: ^7.0
- mobiledetect/mobiledetectlib: ^4.8.03
Requires (Dev)
- cakephp/bake: ^3.0.0
- cakephp/cakephp-codesniffer: ^5.1
- cakephp/debug_kit: ^5.0
- josegonzalez/dotenv: ^3.2
- phpunit/phpunit: ^10.5.5 || ^11.1.3
Suggests
- dereuromark/cakephp-ide-helper: After baking your code, this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan/Psalm compatibility.
- markstory/asset_compress: An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.
- phpstan/phpstan: PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code.
This package is auto-updated.
Last update: 2024-09-17 16:01:31 UTC
README
获取源代码
composer
composer create-project -s dev friendsofcake/crud-demo-app
cd crud-demo-app
设置数据库
在 config/app_local.php
文件的 Datasources
部分修改以反映您自己的数据库。
创建数据库架构 bin/cake migrations migrate
。数据库初始化 bin/cake migrations seed
。
您也可以将 config/schema/db.sql
文件导入您的数据库,而不是使用迁移。
创建一个web服务器
php -S 0.0.0.0:9999 -t webroot/ index.php
访问网站
前往 http://localhost:9999/posts