1 Star 0 Fork 0

ivanloveluo / restgo-admin

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

1、首先上效果

登录页面 登入首页 自由配置角色和权限 支持系统自定义参数

2、如何使用

2.1、使用如下指令克隆

cd $GOPATH/src
git clone https://github.com/winlion/restgo-admin.git  

你将得到restgo-admin 目录
进入目录

cd restgo-admin
go run  main.go

2.2、数据库

新建数据库名称为restgo-admin,编码为utf-8
将restgo-admin.sql导入到数据库中
修改conf/app.properties文件24行数据库配置
restgo.datasource.default.dataSourceName=root:root@/restgo-admin?charset=utf8
数据库配置方式有如下几种,详细请自行百度

user@unix(/path/to/socket)/dbname?charset=utf8
user:password@tcp(localhost:5555)/dbname?charset=utf8
user:password@/dbname
user:password@tcp([de:ad:be:ef::ca:fe]:80)/dbname

2.3、初始化依赖包

使用前先使用如下指令安装指令安装文件

go get github.com/go-sql-driver/mysql  
go get -v -u github.com/alecthomas/log4go  
go get github.com/gin-gonic/gin  
go get github.com/go-sql-driver/mysql  
go get github.com/go-xorm/xorm  
go get github.com/tommy351/gin-sessions  

2.4、启动

使用前先使用如下指令启动应用

go run main.go  

浏览器使用http://localhost/即可访问
初始用户admin,密码rootme@1
使用账号18600000000或admin@qq.com,密码rootme@1也可以

2.5、打包

window下使用如下指令打包应用

build-windows.bat  

linux/unix下使用如下指令

#chmod +x ./build-unix
#./build-unix

打包前请认真阅读配置文件说明
配置文件说明https://blog.csdn.net/keytounix/article/details/79336528

2.6、参数配置

相关参数配置请移步 我的csdn博客https://blog.csdn.net/keytounix

https://blog.csdn.net/keytounix

3、FAQ

3.1 如何安装开发环境

go get github.com/nsf/gocode  
go get github.com/uudashr/gopkgs/cmd/gopkgs  
go get github.com/fatih/gomodifytags  
go get github.com/haya14busa/goplay/cmd/goplay  
go get github.com/derekparker/delve/cmd/dlv  

如果你使用的是vscode,安装问题请访问 https://www.cnblogs.com/Leo_wl/p/8242628.html

3.2 如何联系我

我的微信 jiepool-winlion
我的qq 271151388

MIT License Copyright (c) 2018 winlion 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.

简介

a golang project use gin + xorm 展开 收起
Go
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/ivanloveluo/restgo-admin.git
git@gitee.com:ivanloveluo/restgo-admin.git
ivanloveluo
restgo-admin
restgo-admin
master

搜索帮助

14c37bed 8189591 565d56ea 8189591