DEV Community

Cover image for Dry Bar Cocktails
mbolonzi_
mbolonzi_

Posted on

Dry Bar Cocktails

About Dry Bar

Dry Bar Cocktails is an apllication that allows you to select/customize the cocktail of your choice at the joint and be served immediately The application allows you to select from a variate of cocktails that we serve.
Live link

How to contribute

To fix a bug or enhance an existing module, follow these steps:

Fork the repository
Create a new branch (git checkout -b improve-feature)
Make the appropriate changes in the files
Add changes to reflect the changes made
Commit your changes (git commit -am 'Improve feature')
Push to the branch (git push origin improve-feature)
Create a Pull Request

Fetch function

  function getData() {
    const options = {
        method: 'GET',
        headers: {
            'X-RapidAPI-Host': 'the-cocktail-db.p.rapidapi.com',
            'X-RapidAPI-Key': 'fedf1dd524msh1cf534605192167p136515jsn5200bf26f1a5'
        }
    };

    const response= fetch('https://the-cocktail-db.p.rapidapi.com/popular.php', options)
        .then(response => response.json())
        .then(response => response)
        .catch(err => console.error(err));
    return response
}
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
vapestation profile image
Wat Wat

Dry Bars Cocktails makes it super easy to enjoy your favorite drinks! With the app, you can customize your cocktail selection and have it served to you immediately at the bar. There’s a wide range of options to choose from, so you’re bound to find something you’ll really enjoy