Coder Social home page Coder Social logo

react-practice-code-challenge's Introduction

Mod 4 Practice Code Challenge: Sushi Saga

Welcome to Sushi Saga, where your journey to sushi is only just beginning!

We've had a bit of trouble with our patented Sushi Saga conveyor belt system, so before you can eat, you're going to have to help us get it working.

Here's what it should look like:

Sushi Saga

Doesn't that look delicious?!

Server

To get you going, we've got a backend just chock full of sushi just waiting to be eaten! To get get these guys, you're going to have to do the follow:

  1. Navigate to sushi-saga-client and run json-server --watch db.json
  2. Navigate to http://localhost:3000/sushis to confirm delivery of sushi!

Client

Just as all good sushi needs a firm base of delicious rice, we've given you quite a bit of code to start off your frontend!

  1. Run npm install to download the dependencies
  2. Run npm start to start your React application on http://localhost:3001

This will be located within the sushi-saga-client directory of this repo. Inside are all the components you'll need, as well as instructions as to where and how to render those components properly.

The component hierarchy should be as follows:

  • App is parent to both SushiContainer and Table
  • SushiContainer is parent to both Sushi and MoreButton

Be sure to read all of the notes in the all of the components before getting started! They will give you clues as to how and where to manage state and props

Deliverables

Inspectors will be coming by to check that our patented Sushi Saga conveyor belt is working properly! Oh no! They will be checking the following:

  1. Sushi list is properly received from the server
  2. Only 4 sushi are rendered at a time
  3. Clicking the "More Sushi!" button shows the next set of 4 sushi in the list. For this assignment, you don't have to be concerned about what happens when you reach the end of the sushi list.
  4. Clicking a sushi on a plate will eat the sushi, causing it to be removed from its plate and an empty plate to appear on the table.
  5. We need to make money! Whenever a sushi is eaten, customers should be automatically charged! Based on a budget decided by you, the developer, the amount of money remaining should go down by the cost of the sushi that was eaten. There is a spot to display this number in the Table component
  6. No free meals! Customers cannot eat any sushi that exceeds the amount of money remaining in their balance

Bonus

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

  1. SushiWallet! Add a form for customers to add more money to their balance
  2. Full rotation! When the end of the line of sushi is reached, the conveyor belt should start from the beginning. Sushi that have already been eaten should remain eaten. It would be creepy if they reappeared!
  3. Anything else!

Note: If at the end of the challenge you have achieved all the functionality required but the style looks off, this is okay!

react-practice-code-challenge's People

Contributors

aspenjames avatar dependabot[bot] avatar ihollander avatar kingcons avatar lahgazisafae avatar lizbur10 avatar matthewbrophy avatar notnotdrew avatar pirainogi avatar rrcobb avatar sbal13 avatar thuyanduong-flatiron avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-practice-code-challenge's Issues

json-server README not clear

Should mention that json-server AND npm start should be run in that order.

Also, should mention that REST API limiting is not available, so the student should find an alternative solution.

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.