第五届字节跳动后端青训营——抖音项目
fork x-tiktok to your own namespace
git clone https://github.com/<your-username>/x-tiktok.git
git remote add upstream https://github.com/X-Engineer/x-tiktok.git
git fetch --all
git checkout -b <your-local-branch-name>
do some changes
git add .
git commit -m "your commit message"
git rebase origin/main (optional)
git push origin <your-branch-name>
create a pull request
wait for code review
merge your pull request
delete <your-branch-name>
git checkout main
git pull upstream main
Go back to step 5 to develop new features
git clone https://github.com/X-Engineer/x-tiktok
cd x-tiktok
- config your database in
dao/db.go
- config your redis in
middleware/redis/redis.go
- config your rabbitmq in
middleware/rabbitmq/rabbitmq.go
- config your oss and jwt-token in
config/config.go
- sh run.sh