Skip to content

bandstrar/Le-Baguette

Repository files navigation

Michelin Star Restaurant Dashboard

Our job is to build a website/dashboard for the faux restaurant Le Baquette! This site should keep track of staff, ingredients, reservations, and menu items. Authenticated users should be able to update, create and delete any of the data on the website. They can also track restaurant revenue and inventory, and add orders to reservations.

The Motivation

The motivation is to show our proficiency with CRUD, while doing API calls to and from a firebase database.

Build Status

Deployed

Site Link

Code Style

We are using webpack with Eslintrc with Airbnb strict rules

Screenshots

  • Not Authenticated View Non-Auth View
  • Authenticated View Auth View
  • Single Reservation Single Reservation

Tech/Framework

Javascript Es6, Sass, HTML5

Features

  • Authenticate to perform any actions (CUD)
  • Staff module
  • Ingredients module
  • Reservations module
  • Seating module
  • Menu Items module
  • Filter Menu Items on ingredients
  • Orders module
  • Single reservation view
  • Reporting module

Code Example

const orderTotal = (reservationId) => new Promise((resolve, reject) => {
  const getReservation = getReservationOrders(reservationId);
  const getMenuItems = menuItems.getMenuItems();

  Promise.all([getReservation, getMenuItems]).then(([reservationResponse, menuResponse]) => {
    const menuPrices = [];
    const orderArray = objToArray.objToArray(reservationResponse.data);
    orderArray.forEach((menuItem) => {
      const menuObject = menuResponse.find(
        (price) => price.id === menuItem.menuItemId
      );
      const menuItemUse = menuObject.price || 0;
      menuPrices.push(menuItemUse);
    });
    resolve(menuPrices);
  }).catch((error) => reject(error));
});

ERD

ERD - Second Group

Wireframe

Wireframe - First Group Wireframe - Second Group

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published