Discover Packages
github.com/iissy/goweb
command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jun 7, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
一个由Go语言写的程序员网址导航,由于国内政策不允许个人备案导航相关的网站,目前网站放在海外的阿里云服务器上,所以访问速度稍微有点慢。
星星增长趋势
asy 2.1.2 Released 2021年02月11日
仓库更新到最新的 go-micro
将微服务改成 gRPC
完成 iris、gin、go-micro 技术大升级
iris 显示内容渲染,gin 实现接口,go-micro 微服务
一个应用启用三个端口,web、api、srv各占一个
内容管理项目移入另一个独立仓库
内容管理仓库(https://github.com/iissy/hrefs.cn )
内容管理项目用到的接口在此项目
内容展示这个项目可以独立跑
旧代码见 old 分支
技术栈
go iris 网页 / go gin 接口
go-micro (内置gRPC)微服务框架
consul 服务注册发现
分组路由
中间件实现授权访问
redis 管理登陆会话
日志错误管理
ORM 框架 gorp 引入
图片上传,google.uuid 生成文件名
使用 Go Module 方式开发
内容包含
安装说明
安装 mysql
使用 hrefs.cn.sql 初始化数据库以及数据
安装 redis(不启用内容管理可以不装)
修改配置(conf/config.json)
内容管理代码仓库:https://github.com/iissy/hrefs.cn
组件下载配置
由于大陆网络无法下载google的包,使用七牛公司的代理,下载包前执行命令
go env -w GOPROXY=https://goproxy.cn,direct
组件下载
go get github.com/go-sql-driver/mysql
go get github.com/kataras/iris
go get github.com/go-gorp/gorp
go get github.com/gomodule/redigo
go get github.com/google/uuid
go get github.com/juju/errors
go get github.com/kataras/golog
go github.com/asim/go-micro/v3
go github.com/asim/go-micro/plugins/registry/consul/v3
使用说明
请确保 80 端口没有被别的服务(比如iis)占用,然后在浏览器中输入:http://localhost
如果需要添加修改数据,必须搭建内容管理项目,见安装说明
官方网站
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.