ShowDoc搭建项目API文档

来源:互联网 发布:vb仓库管理系统源码 编辑:程序博客网 时间:2024/05/21 12:39

项目中一直很烦后台与移动端的接口定义没有一个好的工具来快速的编写接口文档:偶尔看到了showdoc这个工具,今天在ubuntu是搭建了一下,记录一下过程。

  • showdoc网站 http://doc.star7th.com/

步骤

  • 按照官网部署手册
  • sudo apt-get update 同步伺服器软件 
    sudo apt-get install apache2 安装apache2 
    sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-curl php5-gd 安装php相关
  • 安装后Apache Web默认目录是/var/www/ 所以将项目上传到此目录下
  • 访问 http://xxxx.com/install/ 进行安装 本次安装使用项目自带Sqlite数据库
  • 安装完成之后注册账号,创建项目,愉快的耍起来吧。