Giter Site home page Giter Site logo

drinklist-app's Introduction

SDI Blended Weekly Workshop: React

For this activity, you will fulfill the following requirements:

FIRST STEP:

Fork & clone this repository

Repo Directions

  • Create a new React application using create-react-app
  • Navigate into your newly created directory and run the command rm -rf .git/ to remove the git repo that create-react-app automatically creates
  • Run the command npm start to start the React server on port 3000
  • Open a new terminal in the root directory and navigate to the server directory
  • From there, run the command npm install. Once the installation has completed, run the command npm start to start the API server on port 3001. (You will not have to change any of the files in the server. The server exists simply to serve up some data from thecocktaildb. Make sure you don't close this terminal or end the process prematurely)

Project Specs

You will be creating an application that will display a list of cocktails made with a searched ingredient. Your application should do the following at a bare minimum:

  • Render a default list of cocktails
  • Add cocktails to a favorites list
  • Remove cocktails from a favorites list
  • Search for new cocktails by ingredient
  • Apply styling to the page

Your application should consist of multiple modular React components. Use what you have learned (React component lifecycles, when/how to send HTTP requests, passing props, prop drilling, lifting state, and handling events) to complete this project. Below is a list of API endpoints you can use to retrieve data from the server:

  • GET http://localhost:3001/ returns an object with property drinks that is an array of drink objects
  • GET http://localhost:3001/search/{Your ingredient search query here} returns an object with property drinks that is an array of drink objects that match the search query.

Stretch Goals

  • Create an "Add a Drink" function that adds a drink to your list. This drink should be stored "in-memory", so changes should not be posted to the API.
  • Refactor code to utilize React Hooks
  • Implement testing using the React Testing Library

drinklist-app's People

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.