table-reservation:使用Express,Knex和MySQL的简单NodeJS表保留后端API

时间:2024-06-12 05:49:50
【文件属性】:

文件名称:table-reservation:使用Express,Knex和MySQL的简单NodeJS表保留后端API

文件大小:23KB

文件格式:ZIP

更新时间:2024-06-12 05:49:50

JavaScript

餐桌预订 使用Express,Knex和MySQL的简单NodeJS表保留后端API 要求: 节点JS MySQL #启动并运行: cd ~/Desktop git clone git@github.com:olehmelnyk/table-reservation.git cd table-reservation npm run firstrun 服务器应在localhost:3000上启动 #REST ### GET / api / reservations /:id按ID返回预订 { "id" : 234 , "table_id" : 1 , "reservation_start" : "2019-10-10T21:10:00.000Z" , "reservation_end" : "2019-10-10T21:15:00.000Z"


【文件预览】:
table-reservation-master
----api()
--------reservations.js(5KB)
----.gitignore(914B)
----app.js(429B)
----package.json(525B)
----package-lock.json(64KB)
----bin()
--------www(2KB)
----README.md(1KB)
----migrations()
--------20191010220750_create_tables_table.js(312B)
--------20191010220822_create_reservations_table.js(429B)
----seeds()
--------tables.js(538B)
----knexfile.js(322B)
----createDB.js(297B)

网友评论