Git Product home page Git Product logo

fifa-world-cup's Introduction

FIFA WORLD CUP 2018

1. URL

2. API

  • MATCHES 比赛信息
  • TEAMS 球队信息
  • GROUPS 小组赛信息
  • PLAYERS 球员信息
  • STATISTICS 球员和球队数据信息
  • AWARDS 奖项信息
  • CLASSIC 往届世界杯信息

3. Usage

  1. 配置用户信息:数据库信息
  2. 抓取数据
  3. 建立数据库表
  4. 同步到 postgreSQL 数据库中
  5. fresh 启动 gin http API 服务并监听变动
  6. 自动生成 swagger 文档
  7. 调用各 API

  • make install

安装项目依赖库

  • make dev

启动web server

4. 技术

  • gin: Web Server
  • gorm: 数据库操作
  • goquery: 网页解析
  • gin-swagger \ swag: 构建 Swagger API
  • fresh: 启动并监听 Web Server
  • viper: 读取用户配置信息

数据库: postgres

可视化工具:

  • pgAdmin
  • DataGrip

API :

  • POSTMAN

5. 截图

Swagger-API

PostMan-API

6. 数据

抓取有困难,或者存在问题的,可以使用 db/fifaworldcup.sql 导入数据库

7. 视频版

网易云课堂

不喜欢视频就看源代码,有问题,我也会解答。

微信:wu_xiaoshen

Stargazers over time

Stargazers over time

fifa-world-cup's People

Contributors

xieweixie avatar

Watchers

James Cloos avatar

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.