-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from GuGoOrg/dev
Dev
- Loading branch information
Showing
3 changed files
with
98 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,77 @@ | ||
# GuGoTik | ||
GuGoTik Repo, more information will be provided after the end of the campus practice. | ||
GuGoTik is sixth practice project of ByteDance campus, themed of a micro TikTok backend. | ||
|
||
If you want to learn more information, please wait util the competition finished. GuGoTik will provide the whole develop document, please give us a star~ | ||
|
||
English | [简体中文](docs/README-CN.md) | ||
# File Structure | ||
- src: the code source of the project. | ||
- build: provide build description file. | ||
- docs: provide project build information. | ||
- test: code verify test. | ||
# Contributor | ||
Project Developer: This is a group of Contributors from all over the world, from WHU, HNU, NJUPT. | ||
- [EpicMo](https://github.com/liaosunny123) | ||
- [Maples](https://github.com/Maple-pro) | ||
- [Attacks](https://github.com/Attack825) | ||
- [amazing-compass](https://github.com/amazing-compass) | ||
- [XFFFCCCC](https://github.com/XFFFCCCC) | ||
|
||
特别感谢: | ||
- [Eric](https://github.com/ExerciseBook) | ||
- [Huang Yongliang](https://github.com/956237586) | ||
- [nicognaW](https://github.com/nicognaW) | ||
|
||
以及有事而无法参与项目的小伙伴: | ||
- [Chuanwise](https://github.com/Chuanwise) | ||
|
||
# 项目结构 | ||
- docker: Built as basic image for project's dockerfile or kubernetes's basic infrastructure. | ||
- scripts: Build scripts | ||
- src: The source of the project | ||
- constant: The project constant | ||
- extra: The service being relied upon | ||
- idl: idl | ||
- models: Data model | ||
- rpc: Rpc code | ||
- services: Micro services instance | ||
- storage: About storage | ||
- utils: Utils code | ||
- web: Gateway code | ||
- test: Test of the project | ||
- Others:Docker Compose file and demo env | ||
|
||
# Extern service | ||
- Redis (Cluster) | ||
- PostgreSQL | ||
- Consul | ||
- OpenTelemetry Collector | ||
- FFMpeg | ||
- Go | ||
|
||
Recommend: | ||
- Jaeger | ||
- Victoria Metrics | ||
- Grafana | ||
|
||
Profile Analysis: | ||
- Pyroscope | ||
|
||
# Build process | ||
RyzeBot of 梦想珈 will build image and push to kubernetes | ||
The PR to Dev branch can be merged into the Master branch after the Action based UnitTest + Code Analysis + Lint + BuildCheck. | ||
The Master branch will automatically trigger the CD, build the image and push it, and RyzeBot will complete the push to K8S for automatic deployment. | ||
|
||
# Config | ||
GuGoTik can automatically capture environement variables or provide them manually as .env files in the order of coverage: | ||
.Env > environement variable > DefaultEnv > EmptyEnv (that is, null value is provided by default, and runtime special judgment is provided by GuGoTik) | ||
|
||
# Build | ||
## Standalone | ||
Run the build-all script in the scripts folder, and then run the run-all script. Please select the script supported by your platform. | ||
## Docker | ||
```bash | ||
docker pull epicmo/gugotik:latest | ||
``` | ||
After entering the container through the interactive end point, run the programs under the GateWay folder and the Services folder by yourself | ||
## Docker-Compose | ||
Run in the project root directory: | ||
Note: The relevant account password settings are viewed in the .env.docker.compose file | ||
```bash | ||
docker compose up -d | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters