Git Product home page Git Product logo

js-hogs-practice-challenge's Introduction

Hogs Practice Challenge

JavaScript Week 2 Project

This is a brief introduction to the hogs you'll see in Hogwarts, which you'll be more fully introduced to in mod 4 - Hogwarts: The React app for fans of prize-winning pigs.

Project deliverables:

  • create an index displaying all hogs, and their attributes. you can create divs and give them the class hog-card to get some styling
  • since greased is a boolean, display that as a checkbox that is either checked if the hog is greased, or unchecked if not
  • create a form that will both post a new hog to the server, and render your fresh hog on the page
  • add delete buttons for each hog, which both removes them from the page, and instructs the server to delete that hog record
  • make the checkbox work so you can grease/ungrease each hog at will. this should persist in the database as well

What we have so far:

  • a file containing all our hog data
  • a folder of hog images
  • an index.html file complete with css, a non-functional form for new hogs, and a div meant to contain all the hogs

How to start:

In order to serve up our hogs, we'll be spinning up a json-server with this command: json-server --watch hogs.json. That way, we can access our hog api at http://localhost:3000/hogs. You can start writing JavaScript in src/index.js. There's also a file defining a Hog class, if you'd like to take an object oriented approach, but feel free to approach this any way you'd like.

js-hogs-practice-challenge's People

Contributors

cjbrock avatar morgvanny avatar notnotdrew avatar

Stargazers

 avatar

Watchers

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