Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yiiplus/scaffold
scaffold是一个基于Yii2高级项目模版工程化实现的应用程序
https://github.com/yiiplus/scaffold
admin adminlte beanstalkd bootstrap desktop developer devops devops-tools devtools elasticsearch elk fis3 kafka kibana logstash mysql php rabbitmq redis yii2
Last synced: about 12 hours ago
JSON representation
scaffold是一个基于Yii2高级项目模版工程化实现的应用程序
- Host: GitHub
- URL: https://github.com/yiiplus/scaffold
- Owner: yiiplus
- Created: 2018-04-26T04:40:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T06:10:44.000Z (over 4 years ago)
- Last Synced: 2024-11-13T14:53:47.740Z (2 months ago)
- Topics: admin, adminlte, beanstalkd, bootstrap, desktop, developer, devops, devops-tools, devtools, elasticsearch, elk, fis3, kafka, kibana, logstash, mysql, php, rabbitmq, redis, yii2
- Language: PHP
- Size: 6.13 MB
- Stars: 16
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii 2 Scaffold Project Kit
易加-脚手架(scaffold)是一个基于[Yii2高级项目模版](https://github.com/yiisoft/yii2-app-advanced)工程化实现的应用程序,它将更加高效、规范和工程化的满足项目开发的需求。
[![Latest Stable Version](https://img.shields.io/packagist/v/yiiplus/scaffold.svg)](https://packagist.org/packages/yiiplus/scaffold)
[![Total Downloads](https://img.shields.io/packagist/dt/yiiplus/scaffold.svg)](https://packagist.org/packages/yiiplus/scaffold)
[![Build Status](https://travis-ci.org/yiiplus/scaffold.svg?branch=master)](https://travis-ci.org/yiiplus/scaffold)
[![DOCS](https://img.shields.io/badge/docs-passing-orange.svg)](https://github.com/yiiplus/scaffold/tree/master/docs)
[![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](http://www.yiiframework.com/)
[![Apache--2.0](https://img.shields.io/badge/LICENSE-Apache--2.0-blue.svg)](https://github.com/yiiplus/scaffold/blob/master/LICENSE)DIRECTORY STRUCTURE
-------------------```$xslt
common
config/ contains shared configurations
mail/ contains view files for e-mails
models/ contains model classes used in both backend and frontend
tests/ contains tests for common classes
console
config/ contains console configurations
controllers/ contains console controllers (commands)
migrations/ contains database migrations
models/ contains console-specific model classes
runtime/ contains files generated during runtime
backend
assets/ contains application assets such as JavaScript and CSS
config/ contains backend configurations
controllers/ contains Web controller classes
models/ contains backend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for backend application
views/ contains view files for the Web application
web/ contains the entry script and Web resources
frontend
assets/ contains application assets such as JavaScript and CSS
config/ contains frontend configurations
controllers/ contains Web controller classes
models/ contains frontend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for frontend application
views/ contains view files for the Web application
web/ contains the entry script and Web resources
widgets/ contains frontend widgets
api
config/ contains api configurations
controllers/ contains Web controller classes
models/ contains api-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for api application
web/ contains the entry script and Web resources
vendor/ contains dependent 3rd-party packages
docker/ contains docker for project
vagrant/ contains vagrant for project
environments/ contains environment-based overrides
```## 快速安装
- 安装 Composer 依赖管理
- [MacOS/Linux/Unix](http://docs.phpcomposer.com/00-intro.html#Installation-*nix)
- [Windows](http://docs.phpcomposer.com/00-intro.html#Installation-Windows)
- 安装 Docker 应用容器引擎
- [MacOS](https://store.docker.com/editions/community/docker-ce-desktop-mac)
- [Windows](https://store.docker.com/editions/community/docker-ce-desktop-windows)
- [CentOS](https://store.docker.com/editions/community/docker-ce-server-centos)
- [Ubuntu](https://store.docker.com/editions/community/docker-ce-server-ubuntu)
- [AWS](https://store.docker.com/editions/community/docker-ce-aws)
- [Fedora](https://store.docker.com/editions/community/docker-ce-server-fedora)
- [Debian](https://store.docker.com/editions/community/docker-ce-server-debian)
- 基于容器化环境部署```bash
# 克隆代码
git clone https://github.com/yiiplus/scaffold.git
# 进入项目目录
cd scaffold
# 设置Git配置
git config user.name "yourname"
git config user.email "your email"
# 编译环境
# 如果安装失败请尝试添加 GitHub 密钥:
# 进入 https://github.com/settings/tokens 点击 「Generate new token」 新建一个 Token;
# 编辑 vim composer.json
# "config": {
# "github-oauth": {
# "github.com": ""
# }
# }
composer run-script docker:build# 代码规范检查
./vendor/bin/phpcs --standard=PSR2 --ignore=tests,docs/,docker/,vendor/,console/migrations,backend/runtime,frontend/runtime,api/runtime,console/runtime,frontend/web/assets,backend/web/assets,api/web/assets -n --colors ./
# 质量检查工具
./vendor/bin/phpmd environments,common,console,backend,frontend,api text phpmd.xml --exclude tests,docs/,docker/,vendor/,console/migrations,backend/runtime,frontend/runtime,api/runtime,console/runtime,frontend/web/assets,backend/web/assets,api/web/assets
```- 访问地址
- Admin: http://admin.scaffold.local 用户名:webmaster 密码:111111
- PC: http://www.scaffold.local
- H5: http://h5.scaffold.local
- App: http://app.scaffold.local
- FIS3: http://fis3.scaffold.local
- phpMyAdmin: http://pma.scaffold.local 服务器:mysql 用户名:root 密码:root## [文档中心](docs/README.md)
- [入门学习](docs/quickstart.md)
- [Docker手册](docs/docker.md)
- [团队编码规范](docs/coding.md)
- 接口文档
- [App接口文档](docs/app.md)
- [开放数据接口(openapi)](docs/openapi.md)
- [内部数据接口(innerapi)](docs/innerapi.md)
- 数据字典
- [数据库手册](docs/database.md)
- [缓存手册](docs/cache.md)
- [邮件和短信](docs/mail.md)
- 服务文档
- [日志服务](docs/logs.md)
- [队列服务](docs/queue.md)
- [定时任务](docs/crontab.md)
- [监控报警](docs/monitor.md)
- 异常解决
- [错误对照表](docs/error.md)
- [调试及调试工具](docs/debug.md)
- [技术白皮书](docs/develop.md)
- [FAQ](docs/faq.md)