Skip to content

qingpizi/hyperf-casbin-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

一个简单使用示例

后端 Hyperf,前端 Angular + NG-ZORRO

安装要求

后端

  • PHP >= 7.3
  • Swoole PHP extension >= 4.5,and Disabled Short Name
  • OpenSSL PHP extension
  • JSON PHP extension
  • PDO PHP extension

前端

  • NODEJS >= 12

安装

  1. 后端
将casbin_example.sql导入mysql
cd hyperf
复制 .env.example 为.env 并配置好数据库连接
composer install
composer server
  1. 前端
cd angular
npm install
npm start

访问

访问 http://localhost:4200 用户名:admin 密码:123456

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 50.5%
  • TypeScript 31.3%
  • HTML 13.2%
  • Dockerfile 2.1%
  • JavaScript 1.3%
  • Less 0.8%
  • Other 0.8%