la-admin发布,基于Laravel 6 和 Angular 8 的通用后台

GITHUB:https://github.com/donjan-deng/la-admin

环境需求

  • Node.js >= 10.9.0
  • PHP >= 7.2.0
  • BCMath PHP 拓展
  • Ctype PHP 拓展
  • JSON PHP 拓展
  • Mbstring PHP 拓展
  • OpenSSL PHP 拓展
  • PDO PHP 拓展
  • Tokenizer PHP 拓展
  • XML PHP 拓展

集成组件

  • endroid/qr-code 二维码
  • gregwar/captcha 验证码
  • laravel/passport OAuth 认证
  • spatie/laravel-permission 权限管理

安装

克隆代码

git clone https://github.com/donjan-deng/la-admin.git

修改配置文件.env.example为.env 并配置好数据库连接。

进入项目执行

composer install
php artisan migrate //迁移数据结构
php artisan db:seed //填充初始数据,默认管理员账号密码admin/123456
php artisan key:generate --ansi //生成一个APP_KEY
php artisan passport:keys //生成passport key,如果你需要用到passport

进入angular目录执行

npm install
npm run build //编译,默认编译至public文件夹

将你的Http Server的index优先级配置为index.html > index.php

使用

angular如何进行开发

编辑angular目录下的proxy.conf.json将target配置为你的php访问地址,并执行

npm start
如何将angular发布到子目录

修改angular.json

"outputPath": "../public",
修改为
"outputPath": "../public/yourpath",

编译执行

ng build --prod=true --base-href=/yourpath/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值