All Projects → anruence → Yii2 Tech

anruence / Yii2 Tech

Licence: other
Yii2 通用后台管理系统

Projects that are alternatives of or similar to Yii2 Tech

yii2-admin-template
Yii2 application template targeted for backends.
Stars: ✭ 17 (-91.19%)
Mutual labels:  adminlte, admin, yii2
Outlookgooglecalendarsync
Sync your Outlook and Google calendars
Stars: ✭ 1,113 (+476.68%)
Mutual labels:  oauth2, calendar
Web Framework For Java
A seed project with spring boot for AngularJS, AngularJs Material, Thymeleaf, RESTful API, MySQL and admin panel based on AdminLTE.
Stars: ✭ 29 (-84.97%)
Mutual labels:  oauth2, adminlte
Vue Admin Beautiful
🚀🚀🚀vue3 admin,vue3.0 admin,vue后台管理,vue-admin,vue3.0-admin,admin,vue-admin,vue-element-admin,ant-design,vue-admin-beautiful-pro,vab admin pro,vab admin plus主线版本基于element-plus、element-ui、ant-design-vue三者并行开发维护,同时支持电脑,手机,平板,切换分支查看不同的vue版本,element-plus版本已发布(vue3,vue3.0,vue,vue3.x,vue.js)
Stars: ✭ 10,968 (+5582.9%)
Mutual labels:  admin, adminlte
Jpproject.identityserver4.adminui
🔧 ASP.NET Core 3 & Angular 8 Administration Panel for 💞IdentityServer4 and ASP.NET Core Identity
Stars: ✭ 717 (+271.5%)
Mutual labels:  oauth2, admin
Luya
LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.
Stars: ✭ 741 (+283.94%)
Mutual labels:  yii2, admin
Yii2 Cms
An enterprise application based on yii2 basic template
Stars: ✭ 188 (-2.59%)
Mutual labels:  yii2, adminlte
Go Admin
A golang framework helps gopher to build a data visualization and admin panel in ten minutes
Stars: ✭ 5,580 (+2791.19%)
Mutual labels:  admin, adminlte
Febs Cloud
基于Spring Cloud Hoxton.RELEASE、Spring Cloud OAuth2 & Spring Cloud Alibaba & Element 微服务权限系统,开箱即用。预览地址:https://cloud.mrbird.cn
Stars: ✭ 1,295 (+570.98%)
Mutual labels:  oauth2, admin
Admin
Admin pack (actions, widgets, etc) for Yii2
Stars: ✭ 100 (-48.19%)
Mutual labels:  yii2, admin
Rageframe2
一个基于Yii2高级框架的快速开发应用引擎
Stars: ✭ 1,553 (+704.66%)
Mutual labels:  yii2, admin
Yii2admin
通用的yii2后台,基于Yii2的advanced应用程序模板,整合RBAC、Menu、Config、Migration多语言、RESTfull等等...
Stars: ✭ 619 (+220.73%)
Mutual labels:  yii2, admin
Easyweb Jwt
基于 SpringBoot、jwt和JwtPermission实现的前后端分离开发框架,接口遵循RESTful风格。
Stars: ✭ 614 (+218.13%)
Mutual labels:  management-system, oauth2
Base
Until 2018, Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE. Backpack v4 no longer uses this package, they're now built-in - use Backpack/CRUD instead.
Stars: ✭ 848 (+339.38%)
Mutual labels:  admin, adminlte
Django Jazzmin
Jazzy theme for Django
Stars: ✭ 574 (+197.41%)
Mutual labels:  admin, adminlte
Yii2 Adminlte Asset
AdminLTE Asset Bundle for Backend Theme in Yii2 Framework
Stars: ✭ 1,124 (+482.38%)
Mutual labels:  yii2, adminlte
D2 Admin
An elegant dashboard
Stars: ✭ 11,012 (+5605.7%)
Mutual labels:  management-system, admin
Bearadmin
基于ThinkPHP5+AdminLTE的后台管理系统
Stars: ✭ 332 (+72.02%)
Mutual labels:  admin, adminlte
One
基于Spring Boot和Vue2开发的前后端分离的后台管理系统
Stars: ✭ 426 (+120.73%)
Mutual labels:  admin, adminlte
Yii2 Boilerplate
yii2 + vue.cli + element ui 前后端分离样板项目
Stars: ✭ 89 (-53.89%)
Mutual labels:  yii2, admin

后台管理系统beta

安装说明:

git clone https://github.com/anruence/yii2-tech.git

cd yii2-tech

composer install --no-dev

数据库迁移

  • 先解压tech.sql.zip文件。
  • tech.sql中保存了sql语句,暂时没写migrate脚本。后续会扩展。
  • 后台 用户名:test 密码:testpass

修改测试环境的common/config/main-local.php文件

environments/dev/common/config/main-local.php

正式环境对应

environments/prod/common/config/main-local.php

<?php
return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=tech',
            'username' => 'your-username',
            'password' => 'your-password',
            'charset' => 'utf8',
        ],
        //...
    ],
];

php yii migrate

php yii migrate --migrationPath=@yii/rbac/migrations

## 使用了yii2-admin组件,如果需要配置菜单执行下面命令

php yii migrate --migrationPath=@mdm/admin/migrations

## 集成了yii2-audit组件,如需使用迁移表即可

php yii migrate --migrationPath=@bedezign/yii2/audit/migrations

提供了sql文件,可以用命令直接导入。

mysql -uusername -ppassword dbname < tech.sql

效果图

  • 前端页面 前端页面
  • 后台管理 后台管理
  • 商品管理(详情页集成ckeditor) 商品管理
  • 树形分类 树形分类
  • audit访问记录 audit trails
  • calendar展示 calendar

nginx配置

建议配置多个二级域名

# 支付端
server {
    listen       80;
    server_name  pay.domain.app;
    root  /data/yii2-tech/pay/web;
    index index.php;
    location / {
        try_files $uri /index.php?$args;
        # index index.php index.html;
    }

    location ~ \.php$ {
        fastcgi_index  index.php;
        fastcgi_pass unix:/var/run/php7.0-fpm.sock;
        # fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}
# 博客端
server {
    listen       80;
    server_name  tech.domain.app;
    root  /data/yii2-tech/tech/web;
    index index.php;
    location / {
        try_files $uri /index.php?$args;
        # index index.php index.html;
    }

    location ~ \.php$ {
        fastcgi_index  index.php;
        fastcgi_pass unix:/var/run/php7.0-fpm.sock;
        # fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}
# 后端mis
server {
    listen       80;
    server_name  mis.domain.app;
    root  /data/yii2-tech/backend/web;
    index index.php;
    location / {
        try_files $uri /index.php?$args;
        # index index.php index.html;
    }

    location ~ \.php$ {
        fastcgi_index  index.php;
        fastcgi_pass unix:/var/run/php7.0-fpm.sock;
        # fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}

# 前端应用
server {
    listen       80;
    server_name  www.domain.app;
    root  /data/yii2-tech/frontend/web;
    index index.php;
    location / {
        try_files $uri /index.php?$args;
        # index index.php index.html;
    }

    location ~ \.php$ {
        fastcgi_index  index.php;
        fastcgi_pass unix:/var/run/php7.0-fpm.sock;
        # fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}

elasticsearch接入(TODO)

OAuth2.0配置

添加oauth2.0的配置文件

    'modules' => [
        'oauth2' => [
            'class' => 'filsh\yii2\oauth2server\Module',
            'tokenParamName' => 'accessToken',
            'tokenAccessLifetime' => 3600 * 24,
            'storageMap' => [
                'user_credentials' => 'frontend\models\User'
            ],
            'grantTypes' => [
                'client_credentials' => [
                    'class' => 'OAuth2\GrantType\ClientCredentials',
                    'allow_public_clients' => false
                ],
                'user_credentials' => [
                    'class' => 'OAuth2\GrantType\UserCredentials'
                ],
                'refresh_token' => [
                    'class' => 'OAuth2\GrantType\RefreshToken',
                    'always_issue_new_refresh_token' => true
                ]
            ],
        ],
    ],
    'components' => [
        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
                'POST oauth2/<action:\w+>' => 'oauth2/rest/<action>',
            ],
        ],
    ]

创建Oauth Server所需数据表

php yii migrate [email protected]/filsh/yii2-oauth2-server/migrations

原作者的migrate脚本有些小问题,参见: https://github.com/Filsh/yii2-oauth2-server/issues/109 在composer仓库中的版本并未修复,正确代码参考:https://github.com/Filsh/yii2-oauth2-server/blob/master/migrations/m140501_075311_add_oauth2_server.php 在oauth_client表中有一条测试记录,需要将http://fake/修改成自定义的domain name。(本例中为:http://api.domain.app)

模拟发送Post请求(Postman)

grant_type:password
username:tuser
password:tpass
client_id:testclient
client_secret:testpass
grant_type:authorization_code
code:code
client_id:testclient
client_secret:dbsecret
redirect_uri:http://api.tech.app/oauth/authcode

sso系统(TODO)

支付系统

微信(支持多商户,APP & H5)

支付宝(支持多商户,APP & H5)

增加seotools配置

php yii migrate [email protected]/jpunanua/yii2-seotools/migrations

seotools路由

  • seotools/manage
  • seotools/manage/create

备注

本项目主要是Yii2常见组件的使用积累,仅供学习参考,如需线上应用请folk然后自由定制自己所需功能。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].