sugar-server

web app framework

Usage no npm install needed!

<script type="module">
  import sugarServer from 'https://cdn.skypack.dev/sugar-server';
</script>

README

sugar-server

npm version npm download

用sugar吧,给你的代码加点甜度

node服务层框架,基于koa但是略有不同。

sugar-server 特点

  1. 基于装饰器的路由设置、请求参数获取、格式校验工具,不再入侵的你代码,配置和阅读代码更加容易;
  2. 简单易用的config配置,支持多环境分离配置内容;
  3. 支持 async/await
  4. 允许无ctx创建Controller,函数处理更纯粹;
  5. createServer 下支持的多应用分离模式,monorepo的好伙伴;

更多文档