Skip to content

long-kr/Project-Restaurant_Reservation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project: Reservation Management Web App

  • Live: https://final-cap-reservations-cliend.vercel.app/dashboard

Installation

  1. Fork and clone this repository.
  2. Run cp ./back-end/.env.sample ./back-end/.env.
  3. Update the ./back-end/.env file with the connection URL's to your ElephantSQL database instance.
  4. Run cp ./front-end/.env.sample ./front-end/.env.
  5. You should not need to make changes to the ./front-end/.env file unless you want to connect to a backend at a location other than http://localhost:5001.
  6. Run npm install to install project dependencies.
  7. Run npm run start:dev to start your server in development mode.

API endpoint:

Endpoint return
GET /reservations?date=yyyy-mm-dd respone with list of all reservations by date
GET /reservations?mobile_number=xxxxxxxxxx respone with list of all reservation by mobile_number
POST /reservations send POST request to server to create new reservation
GET /reservations/:reservation_id respone detail of reservation by reservation_id
PUT /reservations/:reservation_id send a PUT request to server to update reservation
PUT /reservation/:reservation_id/status send a PUT request to server to update reservation status
GET /tables respone with list of all tables
POST /tables send a POST request to server to create new table
PUT /tables/table_id/status send a PUT request to assign a reservation_id to table and change reseration status
DELETE /tables/table_id/status send a DELETE request to remove a reservation_id off table and change reservation status

Client:

  • This web can be used by restaurant manages to create, update, and set seat for customer's reservations.
path summary
/dashboard list of reservations and tables
/search search reservations by phone number
/reservations/new create new reservation
/reservations/:reservation_id/seat assign table for reservation
/reservations/:reservation_id/edit edit an existing reservation
/tables/new create new table

Photo

reservation-app2

  • Previous day Today Next day buttons are used to move to the desired day.
  • Seat button is used to assign table.
  • Cancel will cancel the reservation and remove it from the dashboard.
  • You can use the finish button to free a table.
  • Creating new reservations will be restricted if past days, Tuesday, or post time.
  • Reservation time must be between 10h30 a.m and 9h30 p.m.
  • The number of guests must be smaller than the table capacity in order to set seats.
  • I didn't add validation for the phone numbers since everyone can use it.

About

Final Capstone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published