Giter Site home page Giter Site logo

trayshmhirk / perfect-cocktail-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

A multipage website that calls a cocktailDB API for the cocktails. Each page search for cocktails based on names, ingredients, categories, and alcohol content. You can also save cocktails as favorites.

HTML 59.70% CSS 3.88% JavaScript 36.43%

perfect-cocktail-app's Introduction

Perfect Cocktail API

This is a multipage website where you can search for cocktails based on names, ingredients, categories, and alcohol content. Add cocktails to favorites and access them in the favorites page. Bootstrap 5.0 was used in building this app.

Table of contents

My process

Built with

  • Semantic HTML5 markup
  • Bootstrap
  • Vanilla Javascript

What I learned

I had to remove the measurements for some of the ingredients, because the measurements were not available and it was returning null

// create a string template to pass the ingredients and measure into and return the string into the function to be called at the deignated site
let ingredientTemplate = '';
ingredients.forEach(ingredient => {
    // returns a different list item if the measure of a particular ingredient is null from the API
    if (ingredient.measure === null) {
        // remove the null from the DOM
        return ingredientTemplate += `
            <li class="list-group-item">${ingredient.ingredient}</li>
        `
    } else {
        // add the measure of the ingredient
        return ingredientTemplate += `
            <li class="list-group-item">${ingredient.ingredient} - ${ingredient.measure}</li>
        `
    } 
});

Continued development

I would like to see how i can develop a full scale website like this using reactJS

Author

perfect-cocktail-app's People

Contributors

trayshmhirk 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.