This repository contains a restaurant reservation app that receives form data and posts it to the server using Express. The form data is posted to the /api route and the first 5 reservations will be sent to the tables list, while all of the reservations after the first 5 will be sent to the waitlist. This application also includes links to view the current tables/waitlist data as JSON.
https://my-restaurant-micheqn3.herokuapp.com/
- Make sure you have Node.js to run the application
- Clone this repo
HTTPS:
https://github.com/micheqn3/my-restaurant.git
SSH:git@github.com:micheqn3/my-restaurant.git
- Install the NPM packages
npm install
- Start up the server in the command line
node server.js
- Open the application in your browser as it is hosted locally
- server.js - This file utilizes Express to create a server and initializes the routes to each page.
- /pages - These files contain the layout of the HTML pages for the home page, reservation page, and tables page.
- JavaScript
- Node.js
- Express
- Nodemon
Home Page | Reservations |
---|---|
![]() |
![]() |
Current Tables |
---|
![]() |
MIT