king0120 / react-coding-challenge

React Coding Challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coding Challenge

Overview

To complete this challenge, you will need to write a simple React based web app, and provide us the source files to be built. (Use create-react-app)

The purpose of this challenge is to assess your skills and approach to composing a simple web app given a set of screens and an API feed.

This challenge is expected to take about 2-4 hours.

The Challenge

It's pretty simple. Using the provided screens as a reference, you'll need to build a set of React components to render the app. You'll also need to import an included JSON feed, filter that data, and use the relevant fields.

Although this is a basic exercise, we'll be looking for simple, well-designed code in the submission.

Details

You will need to build the following 3 pages with React:

  • A "Home" page
  • A "Series" page
  • A "Movies" page

Please create components for each part of the page (eg. header, content, footer, etc). Assets are provided in the assets folder.

Stretch goal: The pages should also be usable on mobile and tablet devices.

You can assume that you do not have to support legacy browsers without features such as fetch or flexbox.

"Home" Page

Refer to the screens/1-home.jpg screen.

This will be your index.html screen.

You will need to display 2 tiles, which link to the "Series" page and the "Movies" page.

"Series" and "Movies" Pages

Refer to the screens/2-series.jpg and screens/3-movies.jpg screens.

For each page you will need to fetch this JSON feed feed/sample.json, then:

  • Display the first 21 entries
  • Where the entry has a releaseYear attribute value >= 2010
  • Sorted by the title attribute value in ascending alphanumeric order

For the "Series" page filter on:

  • Where the entry has a programType attribute value of series

For the "Movies" page filter on:

  • Where the entry has a programType attribute value of movie

The attributes you should use to display the entries are:

  • title
  • imagesPoster Arturl

You will also need to handle the loading and error states of fetching the JSON feed:

FAQ

Useful Links

About

React Coding Challenge