1 Star 2 Fork 0

Jerry K / dynamic-router

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

动态路由

当前开发&部署环境为 Linux发行版 Manjaro

命令操作以Linux为准

文档

文档

前端

vue-element-admin

目录 dynamic-router/page

启动
npm install && npm run dev
#或者
yarn && yarn dev
编译打包
npm run build
#或者
yarn build

后端

Go 1.3+、Gin、Mysql5.6

目录 dynamic-router/service

启动
ROUTER_MODE=release \
ROUTER_PORT=8082 \
ROUTER_DB_USER=root \
ROUTER_DB_PWD=123456 \
ROUTER_HOST=192.168.1.129:3306 \
ROUTER_DB_NAME=dynamic_router \
./script/generateConfig.sh && \
go run *.go
编译

window 64

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build .

Linux alias -> app

go build -o app

容器化

默认提供了一个可执行的二进制文件

在目录 dynamic-router/page

需要提前安装 dockerdocker-compose

部署shell
cd page \
./deploy.sh # start | restart => default: start
Mysql

默认访问本地129服务器。

如果需要替换,需要修改 conf/app.ini

脚本文件 dynamic-router/service/dynamic_router.sql

访问

端口号为 12333

http://ip:12333

windows环境

dynamic/service目录下我默认提供了一个 .exe的window环境下可执行文件。

复制 confservice.exe文件,并放到同一个目录下,直接启动就可以了。

这样前端运行起来,默认访问服务端 8082端口,项目正常运行。

MIT License Copyright (c) 2020 g0ngjie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

动态路由 最新代码地址:https://github.com/g0ngjie/dynamic-router 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/g0ngjie/dynamic-router.git
git@gitee.com:g0ngjie/dynamic-router.git
g0ngjie
dynamic-router
dynamic-router
master

搜索帮助