<p align="center">
<img src="https://avatars.githubusercontent.com/u/122664360?s=200&v=4" width="200" height="200" alt="tiktok-server">
</p>
<div align="center">
# Tiktok Document
抖音项目服务器高性能分布式优化版实现
</div>
<p align="center">
<a href="https://github.com/bytedance-casual/tiktok-server/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/bytedance-casual/tiktok-server" alt="license">
</a>
<a href="https://github.com/bytedance-casual/tiktok-server/releases">
<img src="https://img.shields.io/github/v/release/bytedance-casual/tiktok-server?color=blueviolet&include_prereleases" alt="release">
</a>
</p>
## 抖音项目服务端实现
> - [开发人员手册](docs/RULES.md)
> - [答辩 PPT](docs/douyin.pptx)
### 相关文档
- [抖音方案项目说明](https://bytedance.feishu.cn/docs/doccnKrCsU5Iac6eftnFBdsXTof#)
- [极简抖音App使用说明](https://bytedance.feishu.cn/docs/doccnM9KkBAdyDhg8qaeGlIz7S7)
- [各接口说明文档](https://www.apifox.cn/apidoc/shared-09d88f32-0b6c-4157-9d07-a36d32d7a75c/api-50707523)
## 项目结构
> 目录结构参考 [golang-standards/project-layout](https://github.com/golang-standards/project-layout)
- `cmd` - 项目主要的应用程序
- `api` - 微服务网关
- `comment` - 评论模块实现
- `favorite` - 点赞模块实现
- `feed` - 视频流模块实现
- `message` - 消息模块实现
- `publish` - 视频上传模块实现
- `relation` - 关系模块实现
- `user` - 用户模块实现
- `configs` - 配置文件夹
- `docs` - 设计和用户文档
- `idl` - idl 文件夹
- `internal` - 私有应用程序代码库
- `bound` 主机信息相关
- `conf` 配置文件相关
- `lock` 锁操作相关
- `errren` 错误枚举
- `middleware` 中间件相关
- `model` 通用结构体
- `repo` 数据库操作封装
- `sources` 数据源操作封装
- `tracer` 链路追踪相关
- `utils` 工具包
- `kitex_gen` - kitex 生成代码
- `pkg` - 外部应用程序可以使用的库代码
- `test` - 外部测试应用程序和测试数据
- `web` - 静态资源目录
## 编译
- `api` - [[build.sh]](cmd/api/build.sh)
- `comment` - [[build.sh]](cmd/comment/build.sh)
- `favorite` - [[build.sh]](cmd/favorite/build.sh)
- `feed` - [[build.sh]](cmd/feed/build.sh)
- `message` - [[build.sh]](cmd/message/build.sh)
- `publish` - [[build.sh]](cmd/publish/build.sh)
- `relation` - [[build.sh]](cmd/relation/build.sh)
- `user` - [[build.sh]](cmd/user/build.sh)
## 配置项
- [SQL](configs/init.sql) `configs/init.sql`
- [config](configs/config.yml) `configs/config.yml`
- [environment](internal/conf/conf.go) `internal/conf/conf.go`
- 运行时需要提供的服务
- MySQL
- Redis
- ETCD
- Aliyun-OSS
- FFmpeg
## 运行
- 运行各微服务下构建脚本后,可执行文件与启动脚本在对应模块下的 `output` 文件夹内
## 测试
> 测试脚本在 [./test](./test) 目录下,运行前请先跳转到对应路径
- 单模块单元测试 `bash ./test.sh <module_name>`
- 联合单元测试 `bash ./test.sh all`
- 单模块基准测试 `bash ./bench.sh <module_name>`
- 联合基准测试 `bash ./bench.sh all`
## 贡献者名单
- [IllTamer](https://github.com/IllTamer)
- [favan1](https://github.com/favan1)
- [xixiwang12138](https://github.com/xixiwang12138)
- [slgx1121](https://github.com/slgx1121)
没有合适的资源?快使用搜索试试~ 我知道了~
第五届字节跳动青训营后端大作业“超级码力奖(二等奖)”获奖项目.zip
共278个文件
go:230个
sh:18个
thrift:8个
需积分: 5 0 下载量 31 浏览量
2024-05-01
11:16:09
上传
评论
收藏 85.03MB ZIP 举报
温馨提示
第五届字节跳动青训营后端大作业“超级码力奖(二等奖)”获奖项目.zip
资源推荐
资源详情
资源评论
收起资源包目录
第五届字节跳动青训营后端大作业“超级码力奖(二等奖)”获奖项目.zip (278个子文件)
.gitignore 277B
.gitkeep 0B
relation.go 177KB
k-relation.go 131KB
user.go 115KB
favorite.go 106KB
message.go 96KB
comment.go 93KB
k-user.go 87KB
publish.go 79KB
k-favorite.go 78KB
k-message.go 72KB
k-comment.go 69KB
k-publish.go 58KB
feed.go 44KB
k-feed.go 32KB
relationservice.go 8KB
favoriteservice.go 6KB
mysql_repo.go 6KB
handler.go 5KB
userservice.go 5KB
commentservice.go 4KB
messageservice.go 4KB
publishservice.go 4KB
handler.go 4KB
handler.go 4KB
client.go 4KB
relation.go 4KB
relation.go 3KB
relation.go 3KB
handler.go 3KB
handler.go 3KB
redissource.go 3KB
relation_test.go 3KB
handler.go 3KB
client.go 3KB
jwt.go 3KB
user.go 3KB
user.go 3KB
user.go 3KB
user.go 3KB
user.go 3KB
user.go 3KB
client.go 3KB
favorite.go 3KB
favorite.go 3KB
favorite.go 3KB
erren.go 3KB
slice.go 2KB
snowflake.go 2KB
client.go 2KB
client.go 2KB
favorite.go 2KB
client.go 2KB
simple.go 2KB
feed.go 2KB
list_friend_relation.go 2KB
message.go 2KB
message.go 2KB
comment.go 2KB
comment.go 2KB
favorite_test.go 2KB
publish.go 2KB
publish.go 2KB
lua.go 2KB
comment_test.go 2KB
cpu.go 2KB
feedservice.go 2KB
main.go 2KB
main.go 2KB
main.go 2KB
main.go 2KB
main.go 2KB
main.go 2KB
main.go 2KB
user_test.go 2KB
m_get_users.go 2KB
publish_test.go 1KB
mysql_tx_repo.go 1KB
comment.go 1KB
router.go 1KB
feed.go 1KB
client.go 1KB
user.go 1KB
message_test.go 1KB
hcache_repo.go 1KB
action_publish.go 1KB
mysqlsource.go 1KB
message.go 1KB
set.go 1KB
chat_message.go 1KB
list_publish.go 1KB
action_relation.go 1KB
list_comment.go 1KB
m_get_videos.go 1KB
handler.go 1KB
action_comment.go 1KB
register_user.go 1KB
cache_only_repo.go 1KB
login_user.go 1KB
共 278 条
- 1
- 2
- 3
资源评论
JJJ69
- 粉丝: 6269
- 资源: 5775
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功