Blutude / presto

Restaurant Reservation - Web UI Component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PRESTO UI

Web-UI component of the Presto app.

This README will go over the functionalities of the app from the Front-End point of view. We will start by defining the API functions created in the app and how to use them, then talk about forms and their input fields.

Running the App:

  1. Clone the repo: git clone git@github.com:rawad663/presto.git
  2. Install the app dependencies: npm install
  3. Run the app: npm

API Call Functions

The following functions are specified to make AJAX calls to the server using axios:

  • aGet(route)
const aGet = route => axios.get(route);
  • aPost(route, postData)
const aPost = (route, postData_ => axios.post(route, postData);
  • aPut(route, putData)
const aPut = (route, putData) => axios.put(route, putData);
  • aDelete(route)
const aDelete = route => axios.delete(route);

Form Input Fields

Sign Up (Customer and Restaurants):

  • First Name: String
  • Last Name: String
  • Email: String
  • User Type: "customer" || "restaurant"
  • Password: String
  • Confirm Password: String

Additional Fields for Restaurant:

  • Restaurant Name: String
  • Description: String
  • Address: String
  • Postal Code: String
  • Cover Image (coming soon...)

(TODO: Add more form info)

About

Restaurant Reservation - Web UI Component


Languages

Language:JavaScript 93.4%Language:CSS 4.7%Language:HTML 1.8%