Skip to content

ChatGPT integrated short video microservice application built with Kitex and Hertz. 第五届字节跳动青训营后端大作业“码如磐石奖(一等奖)”获奖项目

License

Notifications You must be signed in to change notification settings

Toktik-Team/toktik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toktik

logo A simple short video software microservice backend with basic media stream functions and social functions support, made by Toktik-Team in The 5th Bytedance Youth Training Camp.

English | 简体中文

Demo(With Backend API Only)

https://toktik.xctra.cn/

Project Structure

Compile

  1. Run the following command to install the required tools:
apt-get update && \
    apt-get install -yq git ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev && \
    apt-get clean && \
    apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
    rm -rf /var/lib/apt/lists/*
    
brew install protobuf
go install github.com/cloudwego/kitex/tool/cmd/kitex@latest
  1. Run ./build-all.sh in your Linux environment to compile all services.

Configurations

  • Go ./constant/config/env.go to see the environment variables.
  • The following software/service is required to run the project:
    • PostgreSQL
    • Redis
    • HashiCorp Consul
    • FFMPEG
  • The following software/service is optional:
    • A web server, such as Nginx.
    • Amazon S3, or local storage.
    • OpenTelemetry
    • Jaeger
    • Victoriametrics
    • Grafana

Run

  • Run start.sh --service <service_name> to start a service.
  • See ./service to get the service name.

Test

For Unit Test

  • Run ./unit-test.sh

For End-to-End Test

Compile and run the following files:

  • ./test/e2e/base_api_test.go for basic API test
  • ./test/e2e/interact_api_test.go for interaction API test
  • ./test/e2e/social_api_test.go for social API test

How to Contribute

  1. Please following the HowToAddServices to create your own service.
  2. Create a new branch and make your changes.
  3. Create a pull request to the main branch.
  4. Wait for review and merge.

Contributors

License

Toktik is licensed under the MIT License.

About

ChatGPT integrated short video microservice application built with Kitex and Hertz. 第五届字节跳动青训营后端大作业“码如磐石奖(一等奖)”获奖项目

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published