没有合适的资源?快使用搜索试试~ 我知道了~
koajs-test:KoaJS测试应用
共16个文件
js:9个
makefile:1个
gitignore:1个
需积分: 5 0 下载量 24 浏览量
2021-05-14
03:01:01
上传
评论
收藏 11KB ZIP 举报
温馨提示
KoaJS测试应用 一个使用KoaJS测试RESTful API开发的应用程序。 该应用程序根据实现以下端点: GET / posts-列出所有可用的帖子POST / posts-使用标题和文本属性创建新帖子GET / posts /:id-返回有关帖子的详细信息(id,标题,文本,created_at) PUT / posts /:id-更新帖子DELETE / posts /:id-删除帖子DELETE / posts-删除所有帖子 实现两种存储类型(mongo,sqlite),可以从配置文件中选择。 安装 npm install 将NODE_ENV设置为prod / dev并创建本地配置文件 export NODE_ENV=dev cp config/server.local.js.sample config/server.local.js 数据库设置 此初始化存储库,即为
资源推荐
资源详情
资源评论
收起资源包目录
koajs-test-master.zip (16个子文件)
koajs-test-master
config
server.local.js.sample 256B
server.js 1KB
index.js 3KB
package.json 580B
repository
post.sqlite.js 3KB
manager.js 2KB
mongoose.js 133B
post.mongo.js 1KB
data
README 91B
test
mocha.opts 48B
api
post.js 7KB
lib
repository
post.mongo.js 4KB
.gitignore 40B
Makefile 61B
README.md 3KB
migrate.js 374B
共 16 条
- 1
资源评论
君倾策
- 粉丝: 21
- 资源: 4635
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功