NoodleJS / every-status

找个地方,纪录每天的生活吧: )
http://www.every-status.com
5 stars 2 forks source link

用 Koa 替换Express #3

Open devWayne opened 9 years ago

devWayne commented 9 years ago

全面接入ES6,promise对象和generator函数

只是一个建议,哈哈

elrrrrrrr commented 9 years ago

现在已经用了promise处理 授权流程 再接入KOA 好像意义不是很大

elrrrrrrr commented 9 years ago

scafford 框架

.
├── app     //应用目录
│   ├── assets //静态资源
│   ├── controllers //控制器
│   ├── middlewares //中间件
│   ├── proxy //代理 处理数据层
│   ├── utils //工具类
│   └── views // 页面模版层
├── config // 应用配置 包括路由
├── lib // 驱动
├── logs // 日志
└── test // 测试用例
elrrrrrrr commented 9 years ago

对于REST的一些规范。 查看列表 GET /:collection 查看个体 Get a document: GET /:collection/:id 创建/更新 PUT /:collection/:id 创建一个/多个 POST /:collection 删除一个 DELETE /:collection/:id

elrrrrrrr commented 9 years ago

koa-static 最新版和node v0.11.12冲突 调用的bulebird-or-native有冲突 依赖版本要写死.....