Code Monkey home page Code Monkey logo

douyin's Introduction

youthcamp-star

the 6th ByteDance YouthCamp star team

基于go-fiber框架的极简抖音后端

项目介绍

项目运行

1. 依赖

  • go 1.20
  • mysql, redis, rabbitmq

2. 运行

git clone https://github.com/youthcamp-star/douyin.git

复制config_example.jsonconfig.json,并修改配置文件

确定redis、mysql、rabbitmq服务已启动

运行:

go run main.go

项目结构

目录结构

├── README.md
├── bootstrap
│   └── init.go
├── config
│   ├── config.go
│   ├── config.json
│   ├── config_example.json
│   ├── database.go
│   └── redis.go
├── controller
│   ├── comment.go
│   ├── common.go
│   ├── demo_data.go
│   ├── favorite.go
│   ├── feed.go
│   ├── message.go
│   ├── publish.go
│   ├── relation.go
│   ├── routes.go
│   └── user.go
├── docs
│   ├── assets
│   │   ├── b4df79ccbd27c0fc7c4c8f9015e2a18.png
│   │   └── img.png
│   └── git规范.md
├── go.mod
├── go.sum
├── main.go
├── middleware
│   ├── middleware.go
│   └── rabbitmq
│       ├── commentMQ.go
│       ├── followMQ.go
│       ├── likeMQ.go
│       └── rabbitMQ.go
├── models
│   ├── comment.go
│   ├── favorite.go
│   ├── init.go
│   ├── message.go
│   ├── relation.go
│   ├── response.go
│   ├── user.go
│   └── video.go
├── public
│   ├── bear.mp4
│   ├── common.go
│   └── data
├── service
│   ├── CommentService.go
│   ├── FavoriteService.go
│   ├── MessageService.go
│   ├── RelationService.go
│   ├── UserService.go
│   ├── VideoService.go
│   ├── ossService.go
│   └── redisService.go
├── templates
│   └── index.html
├── test
│   ├── base_api_test.go
│   ├── common.go
│   ├── interact_api_test.go
│   └── social_api_test.go
└── utils
├── errno
│   ├── code.go
│   ├── errconst
│   │   ├── apiserver.go
│   │   └── base.go
│   ├── errno.go
│   ├── runfile
│   │   └── run.go
│   ├── 使用说明.md
│   ├── 声明规则.md
│   └── 错误列表.md
├── jwt
│   ├── init.go
│   └── jwt.go
├── log
│   └── log.go
└── validator
├── init.go
├── required_if.go
└── validator.go

服务架构

服务架构

mysql

mysql

redis

redis

rabbitmq

rabbitmq

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.