Skip to content

The app as default displays Margarita Cocktails but the user can search for any Cocktail. Use npm start

Notifications You must be signed in to change notification settings

hanifb1360/cocktail-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cocktail Assistant

Build a tiny app that helps you gather a shopping list for multiple cocktails.

UI Mockup

           ┌───────────────────────────────────────────────────────────────┬──────┐
           │ Margarita                                                     │Search│
           └───────────────────────────────────────────────────────────────┴──────┘

┌─────────────────────────────────────────────────────────────┐ ┌──────────────────────────────┐
│                                                             │ │                              │
│ ┌────────────┐  ────────────────────────────────────        │ │ Shopping List                │
│ │            │                                              │ │ ──────────────────────────── │
│ │            │  ───────────────                             │ │                              │
│ │            │                                              │ │  ─────────────────           │
│ │            │  ───────────────                             │ │                              │
│ │            │                                        ┌───┐ │ │  ─────────────────           │
│ │            │  ───────────────                       │ + │ │ │                              │
│ └────────────┘                                        └───┘ │ │  ─────────────────           │
│                                                             │ │                              │
└─────────────────────────────────────────────────────────────┘ │                              │
                                                                │                              │
                                                                │                              │
┌─────────────────────────────────────────────────────────────┐ │                              │
│                                                             │ │                              │
│ ┌────────────┐  ────────────────────────────────────        │ │                              │
│ │            │                                              │ │                              │
│ │            │  ───────────────                             │ │                              │
│ │            │                                              │ │                              │
│ │            │  ───────────────                             │ │                              │
│ │            │                                        ┌───┐ │ │ ┌─────┐                      │
│ │            │  ───────────────                       │ + │ │ │ │Print│                      │
│ └────────────┘                                        └───┘ │ │ └─────┘                      │
│                                                             │ │                              │
└─────────────────────────────────────────────────────────────┘ └──────────────────────────────┘


┌─────────────────────────────────────────────────────────────┐
│                                                             │
│ ┌────────────┐  ────────────────────────────────────        │
│ │            │                                              │
│ │            │  ───────────────                             │
│ │            │                                              │
│ │            │  ───────────────                             │
│ │            │                                        ┌───┐ │      ┌─────────────────────────┐
│ │            │  ───────────────                       │ + │ │      │        Searching...     │
│ └────────────┘                                        └───┘ │      │                         │
│                                                             │      └─────────────────────────┘
└─────────────────────────────────────────────────────────────┘

Features

  • search input with query submit button
  • query results listing with thumbnail, name, instructions and "add to shopping list" button for each
  • shopping list that collects all of the ingredients for the cocktails that the user adds
  • print shopping list button that opens up a browser dialog to print the ingredients list
  • toaster that displays various messages: "Searching...", "Here are the results.", "No results found.", "Ingredients added to shopping list.", "Ingredient removed from shopping list."

NOTE: the shopping list deduplicates the items (if two cocktails contain Tequila, you only need to buy a single bottle of Tequila)

Requirements

About haunted

Haunted is a library inspired by React hooks. It enables you to create native web components using hooks and lit-html. At Neovici we use it extensively, so familiarity with it is very important.

About

The app as default displays Margarita Cocktails but the user can search for any Cocktail. Use npm start

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published