Giter Site home page Giter Site logo

openapi-platform's Introduction

个人的 Open API 平台(开发中)

 我个人发布 API 接口的平台,用来管理项目开发中需要用到的接口,支持在线调试,或免费分享有趣的接口供开发人员进行测试。

简单的架构图

  • GateWay:网关,平台的所有请求均走网关,实现统一鉴权、路由转发、业务处理、访问控制等;
  • API Provider 模块:对外提供接口调用,对接第三方时,可视为中转。接口数据统计在这里实现;
  • Web Platform Core 模块:网站调用的接口,如登录、数据的 CRUD、接口调用数据分析等在这里实现;
  • RabbitMQ:消息队列用于将两个模块解耦,API Provider 的调用统计通过 MQ 传输;

技术选型

  • 前端
    • React + TypeScript
    • Ant Design / Ant Design Pro
    • Umi
  • 后端
    • Spring Boot

版本说明

  • Node:v16.20.2
  • JDK 8 / 17

本地开发说明

docker compose -f docker-compose-dev.yml up -d

项目使用了 Nacos、Redis、MySQL。对应的环境变量可在各个*.env文件中修改。由于 Nacos 配置了 MySQL,如果需要修改 Nacos 的数据库,需要自行对初始化的 SQL 脚本init.sql进行修改。

  • 后端项目模块说明:
    • openapi-platform-web: 核心功能,提供页面数据、内部的 Dubbo 服务;
    • openapi-platform-provider: 接口提供模块,这里主要实现用户调用的接口;
    • openapi-platform-gateway: 网关,接口统一鉴权与路由,流量染色、统一业务处理、统一访问日志;
    • openapi-platform-common: 公共模块 model、common、exception 等

效果图

openapi-platform's People

Contributors

ningning0111 avatar bodyzxy 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.