tiktok_demo

command module
v0.0.0-...-36af1b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

tiktok_demo

A simple hertz server that provides user, video, interactive, and social backend services for tiktok app.

How to run

1. tiktok_demo in the local environment

Download ffmpeg package && add ffmpeg to system path or user path

# Install other services
docker compose --profile dev up -d 

go build -o tiktok_demo && ./tiktok_demo
2. tiktok_demo in the docker environment
# Compile in docker image && Packaged with ffmpeg
docker build -t tiktok:latest -f ./docker-build/Dockerfile .

# Start all service
docker compose --profile release up -d

Description

Technology Architecture

arch image

Catalog Introduce
.
├── biz              #  Business logic
│   ├── dal          #  Interaction with the database                             
│   ├── handler      #  Handle request and response
│   ├── model        #  Model definition
│   ├── mw           #  Middleware
│   ├── router       
│   └── service      #  Service implementation
├── docker-build     #  dockerfile 
├── idl              #  Interface definition file
├── pkg 
│   ├── configs      #  Component config
│   ├── constants    #  Common constant
│   ├── data         #  Data Persistence Directory
│   ├── errno        
│   └── utils        
├── docker-compose.yml 
├── Makefile         #  Command to generate code by IDL 
├── hz_gen.sh
├── go.mod
├── go.sum
├── README.md
├── main.go
├── router_gen.go
└── router.go
Service Introduce
Service Function
user User register / Get user information
relation Follow / Get follow list / Get friend (mutual follow) list
publish Publish video
feed Get the last few of all videos as a feed stream
favorite Like the video
comment Comment on a video
message Send message with friends / Get message list with friends

maintained by: leeeezp Kpole zztaki BourneHUST meyoung512

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL