Giter VIP home page Giter VIP logo

bakery-optimizer's Introduction

Bakery Oven Optimizer

Overview

A single page application to optimize oven usage for a fictional bakery. Oven usage is optimized based on the following rules:

  1. One batch of each bread type will be baked in either pan or round loaves
  2. Each customer must get at least one item of their preference
  3. Prefer pan loaves over round loaves in order to optimize oven space

Architecture

This application builds out several components in order to assemble the UI and perform the operations. It utilized a starter template using Next.js and Material-UI. In a larger application I would separate these files into appropriate folders in order to separate concerns and make things easier to find. In an application this small, however, I didn't feel that was necessary.

  • AppContext
    • Contains a React context that the application uses to share data while avoiding prop drilling
  • Breads
    • The component to add and display bread types
  • Copyright
    • This component came with the provided starter template and provides a convenient footer
  • Customers
    • The component to add and display customer orders
  • optimizer
    • The service that performs the depth-first-search of the tree to find the optimal solution
  • Result
    • The component that displays the results of the optimizer calculation

Installation and Running

Install Dependencies

$ yarn install

Start Developer Mode

$ yarn dev

Run Unit Tests

$ yarn test

bakery-optimizer's People

Contributors

yadam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.