{"id":19762541,"url":"https://github.com/ahaostudy/douyin","last_synced_at":"2025-04-30T14:30:56.312Z","repository":{"id":190576298,"uuid":"682894966","full_name":"ahaostudy/douyin","owner":"ahaostudy","description":"青训营项目 —— 抖音极简版","archived":false,"fork":false,"pushed_at":"2023-08-31T10:34:26.000Z","size":46657,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T19:53:19.592Z","etag":null,"topics":["douyin","ffmpeg","gin","go","golang","gorm","mysql","rabbitmq","redis","tiktok","web"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahaostudy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-25T05:56:52.000Z","updated_at":"2024-05-17T06:40:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"49ab865c-3d41-48f2-9d7e-282ae3c88824","html_url":"https://github.com/ahaostudy/douyin","commit_stats":null,"previous_names":["ahaostudy/douyin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahaostudy%2Fdouyin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahaostudy%2Fdouyin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahaostudy%2Fdouyin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahaostudy%2Fdouyin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahaostudy","download_url":"https://codeload.github.com/ahaostudy/douyin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224214147,"owners_count":17274524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["douyin","ffmpeg","gin","go","golang","gorm","mysql","rabbitmq","redis","tiktok","web"],"created_at":"2024-11-12T04:05:01.403Z","updated_at":"2024-11-12T04:05:02.174Z","avatar_url":"https://github.com/ahaostudy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 字节青训营 —— 抖音极简版\n\n\u003cimg src=\"public/image/img.png\" style=\"max-height: 400px;\"\u003e\n\n## 目录\n\n- [项目环境](#项目环境)\n    - [安装FFmpeg](#安装FFmpeg)\n    - [配置MySQL](#配置MySQL)\n    - [Redis与RabbitMQ](#Redis与RabbitMQ)\n- [项目启动](#项目启动)\n    - [clone并进入项目](#clone并进入项目)\n    - [编辑配置文件](#编辑配置文件)\n    - [同步项目依赖](#同步项目依赖)\n    - [启动项目](#启动项目)\n\n## 项目环境\n\n- Golang 1.20\n- MySQL\n- Redis\n- RabbitMQ\n- FFmpeg\n\n### 安装FFmpeg\n\n下载并解压 [ffmpeg-master-latest-win64-gpl.zip](https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip)\n，将解压后的 `bin` 目录添加到环境变量即可。\n\n### 配置MySQL\n\n本项目运行需要将`sql_mode`中的`ONLY_FULL_GROUP_BY`删掉。\n\n先登录MySQL，查询`sql_mode`\n\n```mysql\nSELECT @@global.sql_mode;\n```\n\n```text\n+---------------------------------------------------------------+\n| @@global.sql_mode                                             |\n+---------------------------------------------------------------+\n| ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION |\n+---------------------------------------------------------------+\n```\n\n删除结果中的 ONLY_FULL_GROUP_BY\n\n```mysql\nSET GLOBAL sql_mode = 'STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION';\n```\n\n### Redis与RabbitMQ\n\n自行安装\n\n## 项目启动\n\n### clone并进入项目\n\n```shell\ngit clone git@gitee.com:loau/douyin.git\ncd douyin\n```\n\n### 编辑配置文件\n\n将 `config.bak.yaml` 复制为 `config.yaml`，并在 `config.yaml` 中根据需要修改配置。\n\n```shell\ncp config/config.bak.yaml config/config.yaml\nvim config/config.yaml\n```\n\n### 同步项目依赖\n\n```shell\ngo mod init main\ngo mod tidy\n```\n\n### 启动项目\n\n```shell\ngo run main.go\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahaostudy%2Fdouyin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahaostudy%2Fdouyin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahaostudy%2Fdouyin/lists"}