Skip to content

B-HANSEN/Open_Table

Repository files navigation

OpenTable

Overview

Application walkthrough

Main page:

  • a header section with sign in/up functionalities. Password required to be strong: capital and small letters, numbers and special characters are required.
  • a search section: The search is case insensitive.
  • a results section which renders a selection of restaurants from the external database

Search page:

  • shows all restaurants in the city that was searched in the main screen
  • sidebar enables further filtering by region, cuisine and price. With NextJS, query parameters will be added dynamically.
  • every restaurant has a 'View more information' button that links to the restaurant page. With NextJS, this works by navigating to a dynamic route using the restaurant's URL slug.

Restaurant page:

  • a header section with name and location of the restaurant
  • a main section with an 'Overview' button which is selected by default. The user can navigate to the menu by using the 'Menu' button.
  • the 'Overview' section also renders a description, a star rating and user reviews.
  • the user can search for availability on the reservation section and make reservations.

Reservation page:

  • top section renders reservation details
  • the form requires user input of at least name, phone number and email to enable the 'Complete reservation' button

Notes: limited functionality due to dataset in database

  • main page/ search section: results only for cities Ottawa, Niagara and Toronto

Architecture Overview

A React 19 application built with Next.js 16 and TypeScript. Middleware to verify JWTs and handle authentication. Prisma to communicate with a PostgreSQL database on supabase.com.

Live Demo

The app is hosted on Vercel: https://open-table-nextjs-ruby.vercel.app/

Start Application

To start the application, install packages with npm install and then run npm run dev. The app will be running on http://localhost:3000/.

About

Next v16 full-stack clone of opentable.ca — browse restaurants by city, cuisine and price, check real-time table availability, and complete reservations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors