Git Product home page Git Product logo

react-zoo's Introduction

Mod 4 Zoo Challenge

Welcome to ZooMatch, where animals are matched to zoos.

Setup

Server

We are mocking a backend API using the json-server package. To use it follow the below steps.

  1. npm install -g json-server to install the node package globally.
  2. Run the server with json-server db.json.
  3. You can view the results at http://localhost:3000/animals

Client

Components

  • Animal Catalogue shows animals available for selection
  • Zoo shows animals selected for your zoo
  • Animal Card shows information for a single Animal

Deliverables

  1. You should initially fetch a list of animals from http://localhost:3000/animals and load it into state.
  2. Animals should be in Animal Catalogue initially. Your Animal Catalogue should render each animal as an individual Animal Card.
  3. Selected animals should appear in your Zoo. Your Zoo should render each animal as an individual Animal Card.
  4. Clicking on an animal in Animal Catalogue should 'select it' for your Zoo. It should then appear in your Zoo and disappear from Animal Catalogue.
  5. Clicking on an animal in your Zoo should 'unselect it'. It should then appear in Animal Catalogue and disappear from your Zoo.

Bonus!

If and only if you have time, you may work on the following:

  1. Add a validation so you can only add one male and one female animal of each kind to your zoo.
  2. Create a Searchbar component to filter results in Animal Catalogue by name.
  3. Create a radio button which makes Animal Catalogue return only male or female results.

react-zoo's People

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.