Yapi 应用

1,可以修改open-api,实现tokenless, 这样就不需创建项目,复制粘贴token

2, 可按照swagger.json文档的文件夹结构,实现自动创建workspace and projects

3. when installing the package, it most likely give the error about failing at node-gyp. you can ignore it as long as it didnot fail in the end. I installed it in node10 and node12. both give such errors. it is about missing python2 in the shell environment. not necessary to install the python2.

        it is very misleading when facing such errors, especially accompaning with build-client errors. I got lost and took lots of efforts to have python2 running in my computer shell. however in the end It turns out to be not necesssay.

4,  when building the client package in prd, it use babel and eslint loards, if it fails at packaging, try disabling the eslint loaders in the ykit.config.js

        I suffered a lot at this step. I saw the errors but run away. instead of investigating and solving these errors, I tries the short-cuts in order to get the service deployed onlint asap. it is by copying the prd folder files into my project from my old ones. after treading around tirely several hours, i have to come back and handle these errors again. I was not confident on my react knoeledge and skills, also I didnot do the thing the right way which is to know it, play it and solve it.

4,it can be set to the secondary domain. mock it in the app.js with a middleware.

    in the k8s pod, ingress rewrite can reset the url. the react code call with an prefix with axios library, the browser execute this js code with ajax, it can be direct to the service while matchiing the prefix. then backend service api can be reached after omiting the prefix

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值