GithubHelp home page GithubHelp logo

giphy's Introduction

Unit 6: Giphy Project

Project Description

In this unit, you will create a Giphy App. The Giphy App will take a search term as an input and display a random Gif in a thumbnail on the screen. To create this project, you will learn the anatomy of an API Request, use Promises to make a simple GET request, handle a JSON response object, and use jQuery to display a gif.

Day 1

Day 1 Goal 1: Set Up

Planning

  • Complete the project planning document.

GitHub Set-Up

  • Go to the repository
  • Fork this repository to your Github account and import to a new workspace
  • Submit your website using the link on the Agenda

Starter Code

  • Read through the HTML starter code to understand the organization and class names given.
  • Go to the API request URL here to see how the API request is set up.

Day 1 Goal 2: Write a fetch request to the API

Day 1 Goal 3: Navigate the API request to return a gif

  • Navigate through the API request URL to return only the first gif in the array
    • HINT: Work your way through the layers one at a time (check your console every time!) to find where the original image URLs are stored
  • Update your API request so that only the original image URL is logged to the console

Wrap

  • Commit your changes!

Day 2

Day 2 Goal 1: Display a gif to the screen

  • Update the fetch request so the original gif URL is appended to the screen in the correct div
  • Use string interpolation to get the gif image to display on the screen

Day 2 Goal 2: Add a click handler so the API request can use inputted data

  • Write a click handler for the "Searc" button and move your fetch request into the body
  • Declare a variable to save the user's input
  • Use string interpolation to update the request URL in your fetch request so a gif from the user's search term displays when the button is clicked

Wrap

  • Commit your changes!

Day 3

Day 3 Goal 1: Randomize the gif that is displayed

  • Declare a variable that stores a random number from 0 to the total number of items (different gifs) in the response
  • Update the request URL in your fetch request to display a random gif onto the screen

Wrap

  • Commit your changes!

Day 3 Goal 2: Add a project extension

  • Display multiple images in the response to the screen.
  • Create a mail_to link that will email the GIF to anyone you want.
  • Make the GIF pop out in a modal when clicked on.

References/Tools

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.