Code Monkey home page Code Monkey logo

exercise-4's Introduction

Exercise #4: Mood Board

10 points

DUE: Friday, February 3 by 5:30pm

Instructions

A Screenshot of Pinterest.com from 2010

For this exercise, we'll put together all the techniques we covered this week to make an interactive web page to build a collection of images related to a theme—a mood board.

Create a page that starts with an empty board and prompts users to enter a search query. Use an image search API to fetch images matching that query and present them to the user. Let users select images from the result set to be placed on their board (by adding them to the DOM). Keep those images on the board and allow users to keep running searches and adding more images.

We'll use an image search API from Bing. I'll provide an API key over email that you can use by pasting it into apikey.example.js and renaming the file apikey.js. You can then use the BING_API_KEY variable in your javascript code. You'll notice that apikey.js is in the .gitignore file; please do not check the API key into GitHub. Even if it's not found by bots run by malicious users, it will likely be found by Microsoft's own bots and deactivated, breaking your code and everyone else's.

In your search results you'll also find a list of related search terms. Display those to the user and make them clickable, such that clicking them runs a new search with the suggested term as the query.

Use your judgment to make a functional and visually appealing page. You may want to consider using some of the advanced layouts we learned in Week 2 to fit the control elements, search results, and selected images onto the page in an attractive way.

Don't worry about saving mood boards once they've been created; this week we'll embrace ephemerality.

Remember to include in your submission any classmates you collaborated with and any materials you consulted.

Rubric

  • Use XMLHTTPRequest to make an AJAX requests to the image search API (3 points)
  • Running a search clears previous search results (1 point)
  • Use the DOM API to display image results to the user (2 points)
  • Use the DOM API to display related concept results to the user (1 point)
  • Clicking on a result image adds it to the user's mood board (2 points)
  • Clicking on a related concept runs a new search for that concept (1 point)

exercise-4's People

Contributors

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