http_server_simple_persistence

时间:2021-06-05 12:41:40
【文件属性】:
文件名称:http_server_simple_persistence
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-05 12:41:40
JavaScript 对于这个作业,编写一个 http 服务器,作为一个简单的数据存储。 它应该响应您选择的单个资源的 GET/POST/PUT/PATCH/DELETE 请求,请随意使用 express。 来自 post 请求的数据应保存到存储库中数据文件夹中的 json 文件中,不要将数据文件夹提交到 git。 例如,如果将请求发送到 /notes,其正文为 {noteBody: 'hello world'},则正文中的 json 数据应存储在其自己的 json 文件中。
【文件预览】:
http_server_simple_persistence-master
----routes()
--------notes_routes.js(2KB)
----README.md(497B)
----server.js(308B)
----test()
--------test_http.js(2KB)
----Gruntfile.js(854B)
----package.json(1KB)
----data()
--------file.json(32B)

网友评论