没有合适的资源?快使用搜索试试~ 我知道了~
koa-knex-realworld-example
共51个文件
js:37个
yml:5个
json:2个
需积分: 9 0 下载量 163 浏览量
2021-05-02
16:26:34
上传
评论
收藏 177KB ZIP 举报
温馨提示
示例Node.Js(Koa.js + Knex)代码库包含遵循规范和API的真实示例(CRUD,auth,高级模式等)。 此仓库功能齐全,欢迎PR和问题! 创建该代码库的目的是演示使用Koa.js + Knex构建的完整的全栈应用程序,其中包括CRUD操作,身份验证,路由,分页等。 我们竭尽全力遵守Koa.js + Knex社区风格指南和最佳实践。 有关如何与其他前端/后端一起使用的更多信息,请转至库。 入门 安装 Instal 最新版本 克隆此仓库 安装依赖项,只需在项目文件夹中运行: npm i或yarn 用法 运行npm start以启动服务器 测验 运行npm test进行测试 服务器配置(可选) 您可以使用.env文件来配置项目,如下所示: NODE_ENV = development PORT = 3000 SECRET = secret DB_CLIENT = s
资源推荐
资源详情
资源评论
收起资源包目录
koa-knex-realworld-example-master.zip (51个子文件)
koa-knex-realworld-example-master
.gitignore 298B
package.json 3KB
src
middleware
user-middleware.js 399B
camelize-middleware.js 216B
jwt-middleware.js 484B
auth-required-middleware.js 171B
pager-middleware.js 624B
error-middleware.js 2KB
bin
server.js 1KB
schemas
time-stamp-schema.js 1KB
tag-schema.js 498B
user-schema.js 933B
index.js 265B
article-schema.js 957B
comment-schema.js 847B
migrations
20170422213822_init.js 3KB
lib
app.js 1KB
bootstrap.js 62B
relations-map.js 1KB
utils.js 538B
errors.js 1KB
logger.js 916B
db.js 119B
server.js 403B
env.js 70B
controllers
comments-controller.js 2KB
index.js 249B
articles-controller.js 13KB
tags-controller.js 151B
profiles-controller.js 2KB
users-controller.js 2KB
routes
index.js 386B
tags-router.js 174B
articles-router.js 888B
users-router.js 355B
profiles-router.js 429B
seeds
02-articles.js 1KB
01-users.js 1KB
.example-env 143B
config
development.yml 23B
production.yml 0B
custom-environment-variables.yml 231B
default.yml 171B
test.yml 0B
logo.png 57KB
run-api-tests.sh 483B
readme.md 2KB
Procfile 16B
knexfile.js 1KB
yarn.lock 243KB
Conduit.postman_collection.json 87KB
共 51 条
- 1
资源评论
吉莫吉鱼
- 粉丝: 15
- 资源: 4591
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功