Code Monkey home page Code Monkey logo

mixer-assister's Introduction

Project Overview

Project Description

Mixer Assister is a web app using thecocktaildb.com api to allow a user to search for a specific cocktail, browse for cocktails by category or get a random drink suggestion. Results will contain instructions for making the drink and an image.

Project Links

Wireframes

Upload images of wireframe to cloudinary and add the link here with a description of the specific wireframe.

Define the the React components and the architectural design of your app.

MVP/PostMVP - 5min

App component will just house the route component and links to the main page components, Header, Explainer, Search, Footer Search Component has most of the logic and renders the search components and Details components, Name, Category, Details, Category Search, SearchResults and Drink Components. Links are used from the SearcResults component to render the Drink component, and a Home Link will route back to the default Details component

MVP EXAMPLE

  • Pull data from the API by a name search or random search
  • Render the drink on the page with ingredients, directions and a pic
  • Navigate to a final drink result when multiple drinks are returned

PostMVP EXAMPLE

  • Add category search and render results, pull down final drink from API
  • Add recents component with recent searches which will link back to results
  • Add testing

Time Frames

Component Priority Estimated Time Time Spent Actual
Planning 1 2hrs 2hrs 2hr
Build Basic Components 1 3hr 2.5hr 2.5hr
Build Tests 2 4 hr 1hr 1hr
Working with API 1 4hr 1hr
Render Drink 1 3hr 3hr 3hr
Complete MVP (CSS) 2 3hr 4.5hr 4.5hr
Added search functionality 3 2hr 6hr 6hr
Recents 3 3hr 3hr 3hr
Animation 4 4hr 0 0
Final Tweaks and Tests 3 4hr 4hr
Video Presentation 1 3hr 2hr 2hr

from my timelogs... -basic components 2.5 -tests 1hr -search 1hr -render a drink 3 -route 1.5 -search 3 -tweaking 1 -route 1 -css 2 -remove category .5 -css 2 -outcomes 1.5 -css .5 -recents 4 -re-install category search .5 -pagination of search results with css 2 -category search 1 -more css for category search results 1.5 -recents .5 -video 2hr -search refactor 1

total search: 4 total category or twolevel search: 6.5 route: 2.5 recents: 4.5

Additional Libraries

Use this section to list all supporting libraries and thier role in the project such as Axios, ReactStrap, D3, etc.

Code Snippet

This is a sub route and a redirect to an optional component. I had to do it this way to pass a method through Router

<>
    <Route path="/category-search" render={props => <CategorySearch secondSearch = {this.secondSearch} results={this.state.resultsArray} />} />
    <Redirect push to="/category-search" />                        
</>

Issues and Resolutions

-Couldn't send a method through a Link --Solved by using a sub route and passing the method through the route -Got a lot of "cannot read property ... of null" --Usually an issue with the variable, missing this. or this.state or props.

SAMPLE.....

ERROR: Uncaught TypeError: Cannot read property 'includes' of null
RESOLUTION: Broke up code so variables were declared first then ran .includes So instead of “drink.drinkArr[i].includes(“string”)” this Const key = drinkArr[i] Const value = drink[key] key.includes(string)

mixer-assister's People

Contributors

jamrod avatar

Watchers

James Cloos avatar  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.