Giter Site home page Giter Site logo

magic-bartender's Introduction

Cocktail Recipe API

This "magic bartender" features a web API that allows users to search for cocktails to recieve an image, name, ingredients, and instructions for how to make the cocktail themselves. Great for someone who's interested in learning to make new drinks at home!

Link to project: https://magic-bartender.netlify.app/

Website preview

How It's Made:

Tech used: HTML, CSS, JavaScript

This web application integrates the cocktail web API with some front-end javascript. An event listener sends a request to the API using the contents inside the search form, and changes hidden elements inside the DOM to display data that the API responds back with.

Optimizations

This project could be improved by refactoring it into a full-stack application, which would give me more control over how the requests are handled. Running this website as a full-stack app would allow me to more easily add support for form submission, as it currently only works on-click of the submission button. Additionally, I would like to add better support for searches that result with multiple cocktails, such as a rotating carosel that the user can navigate through.

Lessons Learned:

This project was an early attempt at web API integration, and along the way I ended up learning how to make some weird cocktails I had never heard of! There were a few interesting hurdles to get across in order to make user inputs play nicely with the web API. The input text needs to be manipulated before it's sent off in each server request to work correctly, because the API expects very specific formatting and casing.

magic-bartender's People

Contributors

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