command
module
Version:
v0.0.0-...-ad531c1
Opens a new window with list of versions in this module.
Published: May 24, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
视频互动服务
启动说明
1、项目配置文件
需要将etc/config.toml.template
配置模板文件复制粘贴为:etc/config.toml
,并且修改为自己的配置,如:
[app.grpc]
host = ""
port = 8507
[mysql]
host = "127.0.0.1"
port = "3306"
username = "root"
password = "root"
database = "dou_sheng"
[log]
level = "debug"
dir = "logs"
format = "text"
to = "stdout"
[consul.register]
registry_name = "interaction_service"
host = "127.0.0.1"
port = 8500
tags = ["互动服务", "interaction_service"]
[consul.discovers.api_rooter]
discover_name = "api_rooter"
address = "127.0.0.1:8500"
[consul.discovers.user_center]
discover_name = "user_center"
address = "127.0.0.1:8500"
[consul.discovers.video_service]
discover_name = "video_service"
address = "127.0.0.1:8500"
2、项目启动
本项目采用了Makefile工程化便于开发,电脑需要额外安装make
指令。
- windows推荐安装教程:推荐第二种方式,别忘记配置环境变量
- 命令行键入
make run
启动项目
- 当然,不想安装make指令,也可以直接键入
go run main.go start
启动项目
Documentation
¶
@Author: Ciusyan 2023/1/24
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.