• Stars
    star
    123
  • Rank 288,684 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

RESTful 模板,企业号/企业微信微信扫码登录/同步通讯录——Laravel vue2 iView

Laravel 5.4 RESTful 应用模板,包含企业微信同步联系人,扫码登录,使用 Vue2 iView 做前端

composer.lock Latest Stable Version Total Downloads License

此项目不再维护,仅作学习参考用,勿用作生产。

特性

  • 微信企业微信同步联系人
  • 扫码登录
  • Vue2 iView 前端界面
  • 文件上传处理
  • 微信 jssdk
  • RESTful

建议环境

  • PHP 7.0+
  • Composer
  • Redis
  • Mysql 5.7
  • MongoDB 3.2+

安装

composer install
cp .env.example .env
vim ./.env # 配置数据库,企业微信,缓存等信息
php ./artisan key:generate
php ./artisan jwt:secret
php ./artisan migrate # 迁移表结构
php ./artisan rbac:resetpwd suadmin <password> # 更改超级管理员密码
php ./artisan serve --host=192.168.1.108 # 运行开发服务器,IP 为本机局域网 IP,以便手机访问(扫码)
php ./artisan queue:work # 开启任务队列进程
composer run-script make-api-doc # 生成接口文档

cd frontend
npm install # 安装 nodejs 依赖
cp ./config/index.js.example ./config/index.js
vim ./config/index.js # 修改本机后台服务器 IP 端口
npm run dev # 运行开发服务器
npm run build # 前端打包
npm run dist # 把打包的文件复制到 public 目录
# npm run dist-win # 把打包的文件复制到 public 目录,windows 平台使用

测试

# 创建测试用 MySQL 数据库 laravel_template_test
cp ./phpunit.xml.example ./phpunit.xml # 编辑配置测试相关值
php ./artisan config:clear # 清除配置缓存
composer exec phpunit # 开始测试

注意事项

  • 若微信调试不通过,可在 /storage/app/qywx/qywx.log 查看日志,删除缓存文件
  • 请使用PHP7 以及开启 OPcache 提高性能
  • storage 及其目录需要有写入权限
  • 任务队列默认是 sync 方式,可在 .env 文件中修改为 redis 方式
  • 如非必要,队列不要用 root 权限执行
  • 线上修改了配置文件请需重新运行 php ./arartisan 更新配置缓存
  • 多项目使用同一个 redis 做任务队列支撑,需要配置好默认的任务队列

链接

截图

login_1 login_2 user

More Repositories

1

yn

A highly extensible Markdown editor. Version control, AI Copilot, mind map, documents encryption, code snippet running, integrated terminal, chart embedding, HTML applets, Reveal.js, plug-in, and macro replacement.
TypeScript
5,524
star
2

tensorflow-simple-captcha

使用 TensorFlow 识别简单图像验证码
Python
45
star
3

yii2-template

Restful 模板,提供企业号微信扫码登录——Yii2 React ant-design
PHP
23
star
4

twitter2weibo

推特微博搬运爬虫
TypeScript
18
star
5

expose-github-copilot-http-api

将 VSCode 中的 Github Copilot 转化成 HTTP 接口,方便在其他场景使用。
JavaScript
15
star
6

yank-note-extension

Yank Note Extensions
TypeScript
15
star
7

Ybox

用 51 单片机做的扫雷游戏机
C
11
star
8

markdown-it-attributes

An alternate of markdown-it-attr, write by TypeScript, 132x faster! Add classes, identifiers and attributes to your markdown with {} curly brackets, similar to pandoc's header attributes.
TypeScript
10
star
9

developer.pebble.com

developer.pebble.com archives
HTML
7
star
10

vue2-admin

RESTful RBAC Auth manager for Vue.js 2
JavaScript
7
star
11

php-db-migration

数据库版本管理迁移工具
PHP
5
star
12

USTL-RWSKB

辽宁科技大学人文社科部网上答题,自动答题机
JavaScript
5
star
13

vscode-drawio-preview

TypeScript
4
star
14

yank-note-flutter

Yank Note 移动版本
Dart
3
star
15

vue2-bootstrap

Bootstrap components built with Vue 2
Vue
3
star
16

kotlin-db-migration

MySQL Migration
Kotlin
2
star
17

php-workflow

A simple exclusive workflow lib
PHP
2
star
18

yank-note-extension-example

TypeScript
2
star
19

cordova-vue-demo

Cordova Vue Vux
Java
2
star
20

remove-sdr-kindle

删除 Kindle 里面多余 sdr 文件夹的脚本
Python
2
star
21

pfuck

Python 撸站框架
Python
2
star
22

yank-note-registry

Yank Note Extension Registry
JavaScript
2
star
23

taro-houseloan

基于 Taro 框架的房贷计算器,小程序 H5
TypeScript
2
star
24

purocean.github.io

https://github.com/purocean/blog
HTML
2
star
25

jmeter-wrapper

JavaScript
1
star
26

php-wechat-sdk

微信SDK
PHP
1
star
27

blog

个人博客
HTML
1
star
28

pebble-watchface

pebble 2 watchface
C
1
star
29

vuepress-plugin-html-applet

Embed HTML Applet iframe to your Vuepress article.
JavaScript
1
star
30

jsonrpc-bridge

TypeScript
1
star