This is an app designed to aide restaurants in managing and seating reservations on location. The user can view the reservations for each day from the dashboard. From there, the user can seat, cancel, and edit reservations. Additionally, the user can manage the status of the tables from the dashboard as well by finishing a table when it is ready for new guests. On the search page, a user can look up reservations by partial phone numbers regardless of the date. When Seating a table, the user is required to select a table which is then verified for availability and capacity. Another option available to the user is to create additional reservations and tables in which all input is validated.
- PostgreSQL
- ElephantSQL
- Knex
- Node.js
- Express
- React
- Javascript
- Bootstrap
- CSS
- HTML */
| Verb | URL | Action |
|---|---|---|
| GET | /reservations | list reservations |
| GET | /reservations?date=XXXX-XX-XX | list reservations for date |
| GET | /reservations?mobile_number=XXX-XXX-XXXX | list reservations for phone number |
| POST | /reservations | create new reservation |
| GET | /reservations/{reservationId} | find reservation by Id |
| PUT | /reservations/{reservationId} | update reservation by Id |
| PUT | /reservations/{reservationId}/status | update status of reservation |
| GET | /tables | list tables |
| POST | /tables | create new table |
| PUT | /tables/{tableId}/seat | updates status of table and reservation |
| DELETE | /tables/{tableId}/seat | updates status of table and reservation |
- Fork and clone this repository.
- Run
npm installto install project dependencies. - Run
npm run start:devto start your server in development mode.
If you have trouble getting the server to run, reach out for assistance.
/dashboard
/reservations/new
After seating a resevation, the status of both the reservation and table update
When finishing a reservation, the table status is set to free and the reservation is removed from the dashboard
/search
/tables/new







