Giter VIP home page Giter VIP logo

api-big-work's Introduction

抖音推荐系统

git仓库

目录结构

  • movies文件夹下存放了所有的视频mp4文件
  • titok-web存放了前端代码
  • notes文件下存放了项目文档
  • config.yaml是配置文件,里面只需要该数据库dns即可,注意该文件在第一次运行代码时自动生成
  • log.txt是默认的日志文件位置,记录了后端的日志,可以在config.yaml中修改日志文件位置
  • 其他都是后端的代码

部署要求

环境需求:需要安装golang和postgresql和nodejs,并且把视频的mp4解压到movies文件夹下,首次运行自动创建数据表和根据mp4文件创建数据.

  1. 运行go mod tidy下载go依赖
  2. 进入titoke-web目录下运行npm install安装前端依赖
  3. 运行go run main.go --dev同时启动前后端服务,此时会生成.config.yaml文件,在里面可以配置postgresql的dsn,日志文件位置等,默认数据库是sqlite,所以不配置也可以运行
  4. (可选)修改config.yaml文件中的数据库配置后可以使用go run main.go --postgresql --dev指定postgresql当数据库
  5. (可选)运行npm run dev启动前端服务

api-big-work's People

Contributors

f1yingwhite avatar chi030303 avatar ssurtian avatar

Stargazers

Stella Chen avatar

Watchers

 avatar

api-big-work's Issues

不想写

为什么要写大作业,紫砂了

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.