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:
- Clone the repo:
git clone git@github.com:rawad663/presto.git
- Install the app dependencies:
npm install
- Run the app:
npm
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);
- 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)