You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

yach.open.yapi

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yach.open.yapi

YAPI


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

yach.open.yapi

基于yapi 1.9.2二次开发, 主要是增加了对好未来内部SSO登录的支持。

结合 yapi-plugin-yachsso 插件,可以实现SSO登录替换yapi原有登录,或者和原有登录共存的效果。

效果演示:https://yach-yapi.zhiyinlou.com/

本地调试

  1. 先安装并启动MongoDB, 示意:
$ cd /Users/cqli/

$ curl -0 https://downloads.mongodb.com/osx/mongodb-macos-x86_64-enterprise-4.2.8.tgz

$ tar -zxvf mongodb-macos-x86_64-enterprise-4.2.8.tgz

$ export PATH=/Users/cqli/mongodb-macos-x86_64-enterprise-4.2.8/bin:$PATH

$ cd mongodb-macos-x86_64-enterprise-4.2.8

$ mkdir ostwinddata

$ mongod --dbpath ostwinddata  #

  1. yapi
$ cd vendors
$ yarn
$ cp config_example.json ../config.json
$ npm run install-server # 初始化
$ npm run dev

visit: http://127.0.0.1:3011/ 第一次访问需要编译 有点慢 账号名:admin@admin.com 密码:ymfe.org

注意: 如果插件编译报ESlint错误,需要将插件拷贝到vendors/node_modules下

技术栈说明

  • 后端: koa mongoose
  • 前端: react redux

启动生产环境服务器

$ cd vendors
$ ykit pack -m
$ node server/app.js  # 或者 pm2 start server/app.js

部署

项目地址: https://git.100tal.com/jituan_yach_fe/yach_31_open_yapi

部署文档: https://hellosean1025.github.io/yapi/devops/index.html

其他

yapi源码

FAQs

Package last updated on 03 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc