Socket
Socket
Sign inDemoInstall

koa-rtapi

Package Overview
Dependencies
120
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    koa-rtapi

koa api in rtworld company


Version published
Maintainers
1
Created

Readme

Source

koa-rtapi

简介

  • 创建一个http服务器 (koa2)
  • 简化的基于文件的api路由
  • 支持 request.body(koa-bodyparser)跨域(koa2-cors)静态服务(koa-static)
  • 集成了tkui(填坑UI)和前后台生成工具
  • 集成了代码在线编辑工具
  • power by 村长扫大街

初始化

npm init -y && npm i koa-rtapi && npx koa-rtapi-init && node index

更新

npm update koa-rtapi

启动

node index

文件说明

  • index.js 启动和配置
  • api/ api文件
    • coder.api.js: 代码生成api
    • demo.api.js: 范例api
  • coder/ 代码生成模板
  • www/ 放静态文件

FAQs

Last updated on 21 May 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc