-
Notifications
You must be signed in to change notification settings - Fork 3
Documentation: Frontend
The home page asks user for location and when the user allows location it uses Google Maps API to get the city. This autofills the search box for location. The user can keep the search box blank if he needs all the restaurants in that location or enter a search string for a restaurant. This will return restaurant list based on the search criterion.

If the user blocks the Geolocation request then the user has to fill the search detials. The user gets suggestions on the basis of the search string he types. These suggestions are loaded from the database. Suggestions are provided for both: Restaurant name and Location.

The Home page provides a quick search feature. Based on which tag the user clicks corresponding results are show to the user. In this case the user does not need to type enter the search string for restaurant. Location can be either Geolocation or can be a entered string by the user

When the user selects a particular Restaurant he is redirected to the Restaurant page where-in the user can view and interact with restaurant specific details, for instance: view the restaurant menu, check-in, write a review. If the user is not logged in, the check-in button is unavailable and the "Write a Review" button is disabled. The Restaurant Page Provides with three tabs viz. Overview , Menu and Reviews.
-
Overview Tab: Shows Restaurant specific Information that includes opening Hours, type of cuisine, website, Address, phone number, Average Cost info,
-
Menu Tab : shows Restaurant Menu
-
Reviews Tab: Shows all reviews pertaining to that particular restaurant.

if the User is not logged-in the "Write a Review" button is disabled and asks the user to login

When the User Logs in the Check-in function becomes available to the user on the restaurant. The user can now check-in.

Since the User is now logged in the user can give review to the restaurant. The "Write a Review" button on the Restaurant Page allows the user access the page element that accepts user rating and review. When the user Submits the Review using "submit review" button the data is sent to the server and the reviews can now be seen in the reviews tab on the restaurant page

The Registration page allows a user to register so that the user can check-in and Write Reviews for restaurants. Registration Fields required are:
- Name(Name of the User)
- Username(Desired Username the user Wants)
- Email(Email id of the user)
- Password(Password that user wants to set)

Users can login using their credentials i.e Username and Password that was set during registration. Users are Redirected to Home Page after Login. Login creates a session for a particular User. The Home Page now gives option to the users to View their own profile. Logout function is now available.

Users can view their own profile on the profile page. The profile page has three tabs:
-
Check-ins: shows the restaurants the user has checked into.
-
Reviews : shows all restaurants the user has reviewed and the reviews.
-
Update : Allows to update user information.

The update tab allows the user to update User information. The "Update" button sends the updated information to the server.

Logout button is available for the user to logout
