defyma/yii2-react-basic
Composer 安装命令:
composer create-project defyma/yii2-react-basic
包简介
Yii 2 React template
README 文档
README
Yii2 as backend service API (ajax), and react as view in yii2 in 1 bundle + use native php/yii2 navigation
- JSX file dir in "@app/react/{following with controller and action dir}"
- Develompent Build in "@app/chunk"
- Build file dir in "@web/build"
How to:
Using composer ceate project:
composer create-project defyma/yii2-react-basic <folder>
then:
$ cd <folder>
$ npm install
$ npm start
Manual:
- clone this repo
- composer install
- npm install
- npm start
For Build Prod
npm run build
FYI
This template use native php/yii2 navigation 1 view = 1 react-dom, if you expert on react you can custom with react-router, redux, etc..
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-08-10