Giter VIP home page Giter VIP logo

ddoc's Introduction

基于 laravel 框架支持 5.5 版本, 读取数据库信息生成数据库字典, 通过控制器注释生成API接口文档, 注册 ddoc 路由网页形式呈现

  1. 前端呈现使用的 docute.
  2. API 注释生成采用的 dingo/blueprint.
  3. 参考了 jormin/laravel-ddoc.

安装

composer.json 添加, composer update 安装.

"require": {
    "wxm/ddoc": "1.0.*@dev"
},

配置

  1. 注册 ServiceProvider (laravel 5.5 不需要注册):

    Wxm\DDoc\DDocServiceProvider::class
  2. 发布配置、资源、视图文件:

    php artisan vendor:publish --provider="Wxm\DDoc\DDocServiceProvider" --force

使用

  1. 开启服务器:

    php artisan serve
  2. 访问 http://localhost:8000/ddoc

    默认开启验证, 验证密码 root

接口注释 生成文档

参考 API Blueprint Documentation.

参考图

License

The MIT License (MIT). Please see License File for more information.

ddoc's People

Contributors

qq15725 avatar

Watchers

TobyQ 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.