bedita/manager
Composer 安装命令:
composer create-project bedita/manager
包简介
BEdita Manager - official admin webapp for BEdita4 API
README 文档
README
Backend Manager for BEdita API.
Prerequisites
Install
- Create project via
composer
composer create-project bedita/manager
This will create a new manager folder and install composer dependencies.
If you are using a .zip or .tar.gz release file you just need to unpack it and then run composer install. Run same command if you do a git clone on this repo.
- Build JS/CSS bundles with
yarnfrommanagerfolder
yarn && yarn build
- Configure BEdita API base URL and API KEY in
config/.envlike:
# set BEDITA base URL export BEDITA_API="{bedita-url}" # set BEDITA API KEY (optional) export BEDITA_API_KEY="{bedita-api-key}"
To test the webapp you can simply run builtin webserver from manager folder like this
bin/cake server
And then point your browser to http://localhost:8765/
For any other use than a simple test we recommend to configure your preferred web server like Nginx/Apache and point to webroot/ as vhost document root.
## Configuration
You can further configure your BEdita Manager instance in config/app_local.php with environment and project specific settings.
Have look at the main Manager configuration wiki page on how to customize your Manager instance.
JS Development with webpack
Using .env
It's easy to configure config/.env to match your web server and proxy requirements, see below.
(default proxy: localhost:8080, default server: localhost:3000)
# BE Manager Entry Point WEBPACK_SERVER_HOST=localhost WEBPACK_SERVER_PORT=3000 # Proxy server WEBPACK_PROXY_HOST=local-be4-web WEBPACK_PROXY_PORT=8080
To start develop mode run
yarn develop
Production build with Bundle Report
yarn run bundle-report
ESlint
- Run ESlint via
yarn, to check linting on js files
yarn run eslint resources/js/app/pages/admin/index.js
Run unit tests
To setup tests locally simply copy tests/.env.example to tests/.env and set env vars accordingly.
To launch tests:
vendors/bin/phpunit [test folder or file, default '/tests']
To run those tests you may want to use a Docker image as BEdita4 API endpoint.
For instance if you can pull a Docker image via docker pull bedita/bedita:4 or docker pull bedita/bedita:5
Then you may run the image with
docker run -p 8090:80 --env BEDITA_ADMIN_USR=bedita --env BEDITA_ADMIN_PWD=bedita bedita/bedita:5
You can then set env vars accordingly like this:
export BEDITA_API="http://localhost:8090" export BEDITA_ADMIN_USR="bedita" export BEDITA_ADMIN_PWD="bedita"
and you're ready to go
Licensing
BEdita is released under LGPL, Lesser General Public License v3.
bedita/manager 适用场景与选型建议
bedita/manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.15k 次下载、GitHub Stars 达 13, 最近一次更新时间为 2019 年 11 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 bedita/manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bedita/manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2019-11-15