Giter VIP home page Giter VIP logo

mod-3-got-practice's Introduction

Winter is coming

Build an app to feed the children of Winterfell

Fork and clone this repository Please create your own html and js files

STEP 1: Create your server!

All of the data is stored in the db.json file. You'll want to access this data using a json server. In order to do this, run

  • npm start

All the characters live in http://localhost:3000/characters path All the foods in http://localhost:3000/foods path

STEP 2: Render all the characters on the page

Character information should include name, image, appetite and status and foods eaten

STEP 3: Feed the children

Somewhere on the page there should be a form which has 2 <select /> elements: one for characters and one for foods.

On selecting a character and a food the food name and sustenance value should appear on the list of foods eaten for that character. Each food item should have a delete button to remove that food item from that characters list.

STEP 4: Declare status

If the character doesn't have any foods in the list or the sustenance value of the foods is less than the characters appetite their status should be "I'm hungry", If the combined sustenance value for the foods eaten is greater than characters appetite, the status should say "I'm full"

STEP 5: Add more food items

Create a form to add a food item to the database and render a that food in the dropdown list of foods

STEP 6: Add appetite

Add a way to increase the appetite value for each child which should also make a patch request to the server and the new value should render on the page.

mod-3-got-practice's People

Contributors

16sheep 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.