Front-end and rear-end classification scaffolding
Modular development template
Use dotenv environment variables to configure sensitive data
More flexible directory structure
Automatic loading using PSR-4
Code style specifications comply with PSR-2, PSR-12
The front end is built using Vue.js + Element UI + Vue Cli
https://bp.huijiewei.com/admin Account: 13098761234 Password: 123456
https://github.com/huijiewei/agile-vue
https://github.com/huijiewei/agile-boot
The project requires PHP 7.3 or above
composer install
npm install
127.0.0.1 www.bp.test
server {
listen 80;
server_name www.bp.test;
root {项目根目录}/public;
index index.php index.html index.htm;
rewrite ^/(.*)/$ /$1 permanent;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
include php-fpm;
}
php bin/yii migrate
Download the province, city and county database https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/data.sqlite
Rename to district.sqlite and save to database directory
Run php bin/yii import/district to import district data
├── bin // yii 命令
├── config // 后端配置
├── database
│ └── migrations // 数据迁移脚本
├── public // 网站根目录
│ └── statics // 静态资源
├── ui // 前端开发
│ ├── core // 公用核心模块
│ │ ├── assets
│ │ ├── components
│ │ └── styles
│ └── modules // 前端模块目录
│ └── admin // 管理后台前端代码目录
│ ├── assets
│ ├── components
│ ├── plugins
│ ├── router
│ ├── services
│ ├── store
│ ├── utils
│ └── views
├── src // 后端代码
│ ├── core // 核心公用代码
│ │ ├── components
│ │ ├── models
│ │ │ └── admin
│ │ ├── traits
│ │ └── widgets
│ └── modules // 后端模块
│ ├── admin // 管理后台
│ │ ├── api // 管理后台 API
│ │ │ ├── commands
│ │ │ └── controllers
│ │ └── spa // 管理后台 SPA 页面
│ │ ├── controllers
│ │ └── views
│ ├── website // 前台网站
│ │ ├── controllers
│ │ └── views
│ │ ├── layouts
│ │ └── templates
│ │ ├── auth
│ │ └── site
│ └── wechat // 微信端
Manage back-end and front-end development servers
npm run serve:admin
Manage backend to build production version
npm run build:admin
Website main address http://www.bp.test/
Backend access path http://www.bp.test/admin
Backend management: User: 13012345678 Password: 123456
Version: 2020-11-07 18:00