netgen/content-browser-ui
Composer 安装命令:
composer require netgen/content-browser-ui
包简介
Netgen Content Browser user interface
README 文档
README
This repository contains the user interface for Netgen Content Browser.
Requirements
Development
After cloning the repository, install the dependencies with:
$ yarn install
First time build configuration
Before building the project for the first time, you need to copy .env.dist file to .env. This file specifies
basic configuration for development and running the tests.
Starting the development server
The app uses a mock API by default, provided by the included Express server, which you need to start before starting the Webpack development server:
# Starts the Express server $ yarn express # Starts the Webpack development server $ yarn start
You can now access the app at http://localhost:8181. Webpack watches for changes in files and automatically
refreshes the app.
If you want to use real data from your backend CMS for development of Content Browser, you need to change
the SITE_URL parameter inside .env file to proxy all API requests to your site.
In that case, you don't need to start the Express server. Run only the following:
# Starts the Webpack development server
$ yarn start
Build
To build the production assets run the following:
$ yarn build
This will build the app and place all generated assets into bundle/Resources/public folder.
Tests
For end-to-end testing this repo uses Cypress. Tests are mostly written for test data so Express server needs to be started before running them. To run the tests continuously in Google Chrome while developing, start Cypress with:
$ yarn cypress
This opens a window where you can click on browser_test.js which opens its own Google Chrome window
and runs the tests. Tests are automatically ran whenever the app updates (on every file change).
When ran standalone, tests use the production build of the app:
$ yarn ci
This starts the Express server and runs the tests in a headless browser.
netgen/content-browser-ui 适用场景与选型建议
netgen/content-browser-ui 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 119.26k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2018 年 08 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 netgen/content-browser-ui 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 netgen/content-browser-ui 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 119.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 19
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-17