Code Monkey home page Code Monkey logo

imekataa's Introduction

imekataa

Learning Goals

Implement a mini web app to practice on array iteration, DOM, Events, and Server communications. Introduction

For this challenge, you will be working on Flataculties, an app where you can vote for the cutest animal! You will use a local API and build out the frontend for our app, Flatacuties.

The instructions below will walk you through the process of ideation and planning your app: deciding on your user interface, planning how the information will be laid out on the page, etc. You should work through all the planning steps before you start doing any coding.

Requirements For this project, you must:

Have a well-written README file. Fetch data from a local server running JSON DB server.

Project Setup & Pre-requisite Data In your project directory, create a db.json file and use this dataLinks to an external site. for your server DB. Run this command to get the backend started: json-server --watch db.json Test your server by visiting this route in the browser: http://localhost:3000/characters Project Setup Once you have the plan in place for the application you want to build take the following steps:

Create a new project folder. Create a new GitHub repository (NB: ENSURE IT IS PRIVATE). Add your TM as a contributor to the project. (This is only for grading purposes. We promise we won't steal your code) Please make sure you regularly commit to the repository. Project Guidelines Your project should conform to the following set of guidelines:

Core Deliverables As a user, I can:

See a list of all animal names. You will need to make a GET request to the following endpoint to retrieve the character data GET /characters

Example Response:

{

 "id": 1,

 "name": "Mr. Cute",

 "image": "https://thumbs.gfycat.com/EquatorialIckyCat-max-1mb.gif",

 "votes": 0

},

{

 "id": 2,

 "name": "Mx. Monkey",

 "image": "https://thumbs.gfycat.com/FatalInnocentAmericanshorthair-max-1mb.gif",

 "votes": 0   }, ….]

Click on an animal’s name to see its details i.e image and number of votes. Note, you should only be displaying the details of one animal at a time. You can either use the character information from your first request or make a new request to this endpoint to get the character's details GET /characters/:id

Example Response: {

 "id": 1,

 "name": "Mr. Cute",

 "image": "https://thumbs.gfycat.com/EquatorialIckyCat-max-1mb.gif",

 "votes": 0

},

When viewing an animal’s details, I should be able to add the number of votes for each animal. This number of votes should then be displayed together with the animal’s details. No persistence is needed for the votes.

imekataa'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.