« Search  |  Retro Site View (Experimental)  |  Switch to Reader Mode Images: 56K  |  Retro Mode: ON  |  Original Site »
GitHub   (github.com · converted in 549 ms)
Sections: Homepage  |  Actions CI/CD and automation  |  All Features  |  Documentation  |  Training  |  Certifications  |  Build with Copilot  |  Customize Copilot  |  Integrations  |  Trending repos  |  GitHub Sponsors  |  Developer articles  |  Enterprises  |  Small and medium teams  |  Startups  |  Nonprofits

APIJSON-Demo/APIJSON-JavaScript/README.md at main · APIJSON/APIJSON-Demo

README.md


Latest commit


History


History
View commit history for this file. 34 lines (19 loc) · 1.18 KB

README.md


File metadata and controls


34 lines (19 loc) · 1.18 KB Raw

APIJSON上手部署 - JavaScript


Permalink: APIJSON上手部署 - JavaScript

1.下载后解压APIJSON-Demo工程

Permalink: 1.下载后解压APIJSON-Demo工程

打开APIJSON-Demo的GitHub主页 > Clone or download > Download ZIP > 解压到一个路径并记住这个路径。


2.运行JavaScript工程

Permalink: 2.运行JavaScript工程

可选IDE或编辑器: WebStorm, PhpStorm, VSCode, Sublime, Atom ...
推荐使用 WebStorm。

APIJSON-JS工程

Permalink: APIJSON-JS工程

直接用浏览器打开html文件即可。或者使用IDE或编辑器。

APIJSON-JS-Vue工程

Permalink: APIJSON-JS-Vue工程

需要搭建Vue2.0环境及配置node_modules依赖才能运行调试,我主要参考了这篇博文

http://www.jianshu.com/p/5ba253651c3b


3.测试接口

Permalink: 3.测试接口

看 浏览器界面 或 浏览器控制台。
如果默认url不可用,修改为一个可用的,比如正在运行APIJSON后端工程的电脑的IPV4地址,然后重新运行。

也可以直接使用 APIAuto-机器学习 HTTP 接口工具 或 Postman 等其它 HTTP 接口工具,格式为 HTTP POST JSON,具体示例参考通用文档
https://github.com/Tencent/APIJSON/blob/master/Document.md