GithubHelp home page GithubHelp logo

tielan / apimanager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nutsteam/apimanager

0.0 2.0 0.0 71.2 MB

小幺鸡在线接口管理系统,支持在线测试,支持json,txt,xml,html,js,流,和 WebSocket http://www.xiaoyaoji.com.cn

License: GNU General Public License v3.0

Java 14.31% HTML 3.74% JavaScript 57.12% CSS 15.44% Vue 9.38% Batchfile 0.01%

apimanager's Introduction

LOGO

本项目fork 于 http://git.oschina.net/zhoujingjie/apiManager

特点

  • 在线接口测试 目前支持 json,text,html,xml,jsonp,Websocket
  • markdown编辑器

在线demo (推荐使用在线系统)

文件夹说明

  • web 文件夹是前端静态页面 基于nodejs,webpack gulp,vuejs,jqueryjs开发完成
  • api 使用java开发,运行在tomcat7.x以上版本。maven,druid,mariadb

兼容性

  • 静态页系统暂时只兼容chrome,其他浏览器未测试。
  • 后端:jdk1.7 tomcat7 mariadb5.5

使用说明

文件夹说明

api : 接口 web : 静态页面 - extension:浏览器扩展 - config.js 一些页面配置 - gulp.js gulp构建器 - html 网页源码 - package.json - webpack.config.js webpack配置 ##开发版本

API

  • api/src下面为源码,基于maven项目构建。
  • 修改api/src/main/resources/config.properties 中的数据库配置信息,
    • 如果需要使用第三方登录,需要配置对应的地址
    • 如果需要使用邮件发送,需要配置sendcloud邮箱配置信息
    • config.properties未单独做中文编码处理,为防止乱码,中文需要改为unicode
  • 导入api/sql/xiaoyaoji.sql 文件导入到mysql中,
  • 启动tomcat,浏览器运行 http://localhost:端口/index.html 能正常显示则表示可用。

申明一下:如果只是需要离线部署,请直接看 『直接使用』下面的介绍,如果是需要二次开发,api是java代码,web是静态代码。

API 依赖jar org.mangoframework.core 1.2.3

 项目及使用说明都在这:http://git.oschina.net/zhoujingjie/mangoframework
 或者直接下载附件中的jar

WEB

  • npm install 下载项目依赖包

  • npm run watch 编译并且监听文件改动

  • npm run server 运行开发项目-文件夹 (用于开发过程中)

  • 浏览器访问http://localhost:8080/ 可以看到正在开发中的项目

  • npm run build 编译项目,并且生成built文件夹

  • gulp 将built文件夹及html文件夹代码打包到dist文件夹中;

  • npm run dist-server 运行dist文件夹下的项目(也就是编译后的项目,一般用于上线前最后测试。)

  • 浏览器访问http://localhost:8080/ 可以看到编译打包后的项目

  • 修改html/assets/js/config.js配置

    • window.root : 接口地址
    • window.ctx : 静态页面相对路径
    • window.xyj.ws 地址为ws://你的ip:端口/api

直接使用

  • 下载https://git.oschina.net/zhoujingjie/apiManager/tree/master/releases 中的最新版本的zip包(之前是放在附件中,附件上传速度太慢改为这了)
  • 复制解压的内容到tomcat/webapps/ROOT 目录下
  • 需求修改的地方
    • 导入api/sql/xiaoyaoji-MMdd.sql 到mysql中。mysql需要5.5以上
    • 修改/WEB-INF/classes/config.properties中的数据库配置信息。
    • 修改 /assets/js/config.js 里面的window.root的地址为你部署api后的访问地址 和window.xyj.ws 地址为ws://你的ip:端口/api
    • 如果需要使用第三方登录,需要配置对应的地址
    • 如果需要使用邮件发送,需要配置sendcloud邮箱配置信息

注意(插件1.4.2已解决)

* 离线部署版本 暂时需要使用localhost或者其他域名访问,使用ip访问插件暂时不能用。

效果

基本 基本 基本 基本

Yum安装tomcat命令

sudo yum install tomcat tomcat-webapps tomcat-admin-webapps -y
echo hello > /var/lib/tomcat/webapps/ROOT/index.html
sudo service start tomcat
curl -is http://127.0.0.1:8080/index.html

apimanager's People

Contributors

vus520 avatar

Watchers

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