Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用 Koa 替换Express #3

Open
devWayne opened this issue Nov 13, 2014 · 4 comments
Open

用 Koa 替换Express #3

devWayne opened this issue Nov 13, 2014 · 4 comments

Comments

@devWayne
Copy link

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

只是一个建议,哈哈

@elrrrrrrr
Copy link
Member

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

@elrrrrrrr elrrrrrrr reopened this Nov 25, 2014
@elrrrrrrr elrrrrrrr added this to the 后端框架升级 milestone Nov 25, 2014
@elrrrrrrr
Copy link
Member

scafford 框架

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

@elrrrrrrr
Copy link
Member

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

@elrrrrrrr
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants