micheqn3 / my-restaurant

This repository contains a restaurant reservation app that receives form data and posts it to the server using Express.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License: MIT

My Restaurant

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.

Link to deployed application

https://my-restaurant-micheqn3.herokuapp.com/

Installing locally

  1. Make sure you have Node.js to run the application
  2. Clone this repo

HTTPS: https://github.com/micheqn3/my-restaurant.git
SSH: git@github.com:micheqn3/my-restaurant.git

  1. Install the NPM packages

npm install

  1. Start up the server in the command line

node server.js

  1. Open the application in your browser as it is hosted locally

http://localhost:3000

This repository contains:

  • 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.

Technologies/Languages used:

  • JavaScript
  • Node.js
  • Express
  • Nodemon

Screenshot of pages

Home Page Reservations
Home page Reservations.
Current Tables
Tables

License License: MIT

MIT

About

This repository contains a restaurant reservation app that receives form data and posts it to the server using Express.

License:MIT License


Languages

Language:HTML 88.2%Language:JavaScript 11.8%