All Projects → WarnerYang → HyperVue

WarnerYang / HyperVue

Licence: MIT license
🚀 基于 Hyperf + Vue + ElementUI 前后端分离的通用型管理后台

Programming Languages

PHP
23972 projects - #3 most used programming language
Vue
7211 projects
javascript
184084 projects - #8 most used programming language
PLpgSQL
1095 projects
CSS
56736 projects
Dockerfile
14818 projects
HTML
75241 projects

Projects that are alternatives of or similar to HyperVue

gotask
⚡️ A lightning speed replacement for Swoole TaskWorker in Go
Stars: ✭ 164 (+613.04%)
Mutual labels:  swoole, hyperf
Grapefruit.vucore
A front-background project using ASP.NET Core WebApi and Vue.js
Stars: ✭ 210 (+813.04%)
Mutual labels:  restful-api, element-ui
chat
php+swoole+vue实现的在线IM
Stars: ✭ 29 (+26.09%)
Mutual labels:  swoole, element-ui
MineAdmin
🎉🌈🔥MineAdmin是基于Hyperf框架 和 Vue3+Vite3 开发的前后端分离权限管理系统,自适应多终端。特色:crud生成 + json配置化开发一把梭
Stars: ✭ 142 (+517.39%)
Mutual labels:  swoole, hyperf
hyperf-v2-demo
Hyperf Demo(easywechat,chat)
Stars: ✭ 19 (-17.39%)
Mutual labels:  swoole, hyperf
thrift2-hbase
thrift2-hbase component for Hyperf.
Stars: ✭ 14 (-39.13%)
Mutual labels:  swoole, hyperf
Hyperf
🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.
Stars: ✭ 4,206 (+18186.96%)
Mutual labels:  swoole, hyperf
go-zero
A cloud-native Go microservices framework with cli tool for productivity.
Stars: ✭ 23,294 (+101178.26%)
Mutual labels:  restful-api
go-api-basic
A Go RESTful API template
Stars: ✭ 313 (+1260.87%)
Mutual labels:  restful-api
dwoole
⚙️ Docker image for Swoole apps with Composer, auto-restart on development and a production-ready version.
Stars: ✭ 32 (+39.13%)
Mutual labels:  swoole
mezon
Mezon is a simple php framework wich will help you to create business applications.
Stars: ✭ 35 (+52.17%)
Mutual labels:  restful-api
Text Classification TF
用tf实现各种文本分类模型,并且封装restful接口,可以直接工程化
Stars: ✭ 32 (+39.13%)
Mutual labels:  restful-api
readthis-api
100000p.com
Stars: ✭ 17 (-26.09%)
Mutual labels:  restful-api
docker-images
本仓库为自定义及收藏的一些镜像,方便使用。包含PHP5、PHP7开发环境等镜像。
Stars: ✭ 18 (-21.74%)
Mutual labels:  swoole
swoole-link-monitor
基于swoole 定时器与woker 实现链路监控
Stars: ✭ 34 (+47.83%)
Mutual labels:  swoole
webpack-Vue-vueRouter
通过webpack打包工具以及Vue和Vue-router实现一个公司官方网站的搭建
Stars: ✭ 21 (-8.7%)
Mutual labels:  element-ui
tinyspec
Simple syntax for describing REST APIs
Stars: ✭ 95 (+313.04%)
Mutual labels:  restful-api
crow
Fast, unopinionated, minimalist web framework for PHP.
Stars: ✭ 47 (+104.35%)
Mutual labels:  swoole
vue-login
基于vue2.0+koa2+mongodb实现注册登录
Stars: ✭ 90 (+291.3%)
Mutual labels:  element-ui
Jonty.Blog
🎯Jonty.Blog个人博客项目,底层基于免费开源跨平台的.NET Core 3.1开发,使用 ABP vNext搭建项目框架,支持主流数据库,遵循RESTful接口规范,前端使用Blazor开发。
Stars: ✭ 42 (+82.61%)
Mutual labels:  restful-api

HyperVue

🚀 基于 Hyperf + Vue + ElementUI 前后端分离的通用型管理后台

预览

demo_menu demo_auth

如何使用

获取源码

git clone https://github.com/WarnerYang/HyperVue.git

hyperf 部署

# 下载并运行 hyperf/hyperf 镜像,并将镜像内的项目目录绑定到宿主机的hyperVue下的hyperf目录(windows用powershell)
# 我的目录是 /Users/yhq/wwwroot/learn/HyperVue/hyperf
cd hyperf

docker run --name hyperVue-hyperf -v /Users/yhq/wwwroot/learn/HyperVue/hyperf:/hyperVue-hyperf -p 9501:9501 -it --entrypoint /bin/sh hyperf/hyperf:7.2-alpine-cli

以下在容器中操作

# 镜像容器运行后,在容器内安装 Composer
wget https://github.com/composer/composer/releases/download/1.8.6/composer.phar
chmod u+x composer.phar
mv composer.phar /usr/local/bin/composer

# 将 Composer 镜像设置为阿里云镜像,加速国内下载速度
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer

# 进入安装好的 Hyperf 项目目录
cd hyperVue-hyperf

# 安装依赖
composer install

# 复制env文件
cp .env.example .env

# 导入数据库 hyperVue.sql

# 修改env文件里面的相关参数,保存退出
vi .env

# 启动 Hyperf
php bin/hyperf.php start

vue 部署

# 下载并运行node镜像,并将镜像内的项目目录绑定到宿主机的hyperVue下的vue目录
# 我的目录是 /Users/yhq/wwwroot/learn/HyperVue/vue
docker run --name hyperVue-vue -v /Users/yhq/wwwroot/learn/HyperVue/vue:/hyperVue-vue  -it --entrypoint /bin/sh node:latest

以下在容器中运行

# 安装vim
apt-get update
apt-get install vim

# 修改接口地址
vim /hyperVue-vue/build/webpack.base.conf.js
# 改成对应接口地址
var PUB_HOST = JSON.stringify('http://127.0.0.1:9501/')

# 将 npm 镜像设置为淘宝镜像cnpm,加速国内下载速度
npm install -g cnpm --registry=https://registry.npm.taobao.org

# 安装依赖
cnpm install

# 本地调试
npm run dev

# 构建
npm run build

一些常用命令

#进入容器
docker exec -it hyperVue-vue /bin/sh

查看扩展信息
php --ri swoole

查看composer包信息
composer info | grep hyperf

请求
curl  127.0.0.1:9501/admin/base/getConfigs -w %{http_code}

参数:
-w %{http_code}
-X POST

自动化测试
https://phpunit.readthedocs.io/zh_CN/latest/writing-tests-for-phpunit.html
# 重新生成代理类
php bin/hyperf.php di:init-proxy
# 运行单元测试
composer test
composer test -- --filter=testFoo

# 类名: class FooTest extends HttpTestCase

# 方法名:
public function testFoo(){} 
或者
/**
* @test
*/
public function foo(){}

免责声明: 该项目仅作为学习使用,如投入生产所产生的损失由使用者自己承担!!!

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].