GithubHelp home page GithubHelp logo

martinbryant / beer_engineer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 5.74 MB

Beer Engineer - Enable search of the Punk Beer api and display the search results whilst allowing the user to favourite beers. These favourites will be saved for any later sessions using local storage

Home Page: http://martinbryant.io/beer-engineer/

HTML 2.37% CSS 0.45% JavaScript 97.18%
react redux react-router material-ui

beer_engineer's Introduction

Beer Engineer

CircleCI

Inspired by 5 Projects To Complete When Starting to Learn Front-End Web Development

I would recommend creating a similar app to giphy in layout, but one which allows you to have a ‘shopping cart’ or ‘favourite’ functionality. You should then be able to see a separate list of the items you favourited. This will of course not be saved to any database, but will bring a new set of challenges with managing application state.

I would recommend diving into a front-end framework to expand your ability and general understanding over modern web development. Because I work heavily with Facebook’s React I would recommend starting that, and using react create app to get started.

This might seem like a giant leap at first, but focus on building this web app piece by piece. Create the app in the following order;

  • Template data on the page from a generic API request
  • Add a search bar, which makes a separate query to a database on request
  • Add favourite functionality which allows you to favourite a card
  • Create a separate route (using react router) which allows you to see all the beers you’ve favourited in the session.

Beer Engineer using React/Redux/Material UI

Challenges

  • Using and customising React Material UI for the layout
  • Incorporating React Router and Material UI tabs for page navigation
  • Design decisions on storing data to be retreived from local storage

Takeaways

  • I have learnt an alternative way to apply styles to components
  • I feel confident to use React Router in the future
  • Spent some time researching Redux messaging patterns for project scaling

Acknowledgments

Garrett Levine - Thank you for the great article

beer_engineer's People

Contributors

martinbryant avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Forkers

pen-pusher

beer_engineer's Issues

API failure notifications are not accurate

Because of the try catch in the api request beers, the notification messages are displaying incorrect request failure reasons to the user. eg. cannot read property length of undefined.

Fix would be

  • Dont use try catch
  • Dont use several calls to the random api endpoint
  • Use ids endpoint and generate single request to multiple ids, using Math.Random to generate random ids

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.