Giter Site home page Giter Site logo

face-cards's Introduction

Face Cards

Much of the work at SendGrid involves pulling in data from multiple sources and combining them into one, cohesive presentation.

This problem is separated into two tasks. First, display three "cards" for randomly-selected users which displays their name, email address, company catchphrase, and, of course, their adorable avatar. Second, display 5 randomly-selected posts when a user clicks on an individual card.

General Requirements

  1. Use React, Jest, and your favorite library for managing state to create the simple application described below.
  2. Write clean, concise, self-documenting code.
  3. Write small, easily-testable components.
  4. Write unit tests and ensure code coverage.

Familiarize yourself with the Jest documentation.

Time Expectations

We would expect this task to only take about 3 hours to complete. It's okay to go over if you're enjoying yourself, but if you go too much beyond please add some comments on how you would see yourself finishing this, what changes you might make, etc. and make your submission.

Technical Requirements

Part 1

  1. Fetch user data from https://jsonplaceholder.typicode.com/users via AJAX.
  2. Select three unique users at random.
  3. Display a card for each of the three randomly selected users (see mockups below).
  4. Cards are 350px by 206px.
  5. The avatar images are provided by http://avatars.adorable.io. The <img> element's src attribute will be in the format of https://api.adorable.io/avatars/150/<email>.png.
  6. You may use any JavaScript library not already provided to achieve the desired functionality.

Part 2

  1. When a user clicks on a card, perform an AJAX request to https://jsonplaceholder.typicode.com/posts?userId=<USER ID>.
  2. Select five unique posts at random.
  3. Display the title and body of each post below the original three cards (see the mockups below).
  4. The title should always render Capitalized Words.

Reference Material

Part 1 Design

Design for Part 1

Part 2 Design

Design for Part 2

Getting Started

  1. Fork and then clone the provided GitHub repository.

  2. Install the project's dedpendencies.

npm install
  1. Start the development server.
npm start
  1. Run your unit tests.
npm test

Submitting your Work

  1. Double check the application works as expected and that all unit tests pass.
  2. Push code to your forked repository.
  3. Open a pull request from your forked repository to the repsository which was originally provided.
  4. Delete your repository or make it private after we have acknowledged receipt of your submission.

face-cards's People

Contributors

dickblack avatar stevekinney avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dylanitorium

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.