note-crud-api:简单的node.js CRUD Rest Api

时间:2021-05-03 18:54:19
【文件属性】:
文件名称:note-crud-api:简单的node.js CRUD Rest Api
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-03 18:54:19
JavaScript 简单的node.js CRUD Rest Api 在你开始之前 克隆项目 git clone https://github.com/michnaadam33/note-crud-api.git 安装依赖项 cd npm install 移民 执行迁移 cd ./node_modules/sequelize-cli/bin/sequelize db:migrate 运行REST Api 要启动api,您需要执行 node index.js或npm start 开始测试 要执行测试,请使用以下命令启动api cd node index.js 然后在另一个shell中运行 mocha或./node_modules/mocha/bin/mocha 配置 配置数据库 Defautl数据库配置config
【文件预览】:
note-crud-api-master
----.jshintrc(462B)
----.gitignore(18B)
----app.js(348B)
----package.json(638B)
----models()
--------index.js(877B)
--------note.js(478B)
----index.js(522B)
----README.md(834B)
----config()
--------configServer.json(19B)
--------config.json(52B)
----migrations()
--------20151008140043-create-note.js(816B)
----noteDB.db(5KB)
----routes()
--------notes.js(4KB)
----test()
--------routes.js(2KB)

网友评论