Giter VIP home page Giter VIP logo

chattermill-challenge's Introduction

Chattermill Frontend Coding Challenge

This little app allows you to browse the reviews feed and filter items based on a particular review topic.

The app requires authorization with the following credentials:

  • username: chattermill,
  • password: SuperSecretChattermillPassword!

Challenge description

Running the project

In the project directory, first run yarn to install all the dependencies.

Then you can start the project with yarn watch.

Open http://127.0.0.1:3000 to view it in the browser.

Data and technologies

Data

All data is fetched from the Reviews API at API link.

Technologies

  • React - UI library,
  • Axios - Data fetching and caching library
  • timeago.js - Tiny library to display a human-readable relative time difference,
  • React Select - Select Input control for ReactJS.

Comments

Comments on decisions made, potential next steps and improvements.

Decisions made

  • Use React.Context for storing Auth state and make that data available for all the routes within the app,
  • Use Axios for fetching data to skip a few lines of JSON parsing code and receive a consistent response model,
  • Use React Select as a quick solution for enabling typehead search and improving the UX,
  • Given the Data model's restrictions, implement a fetching strategy that loads all the available filter options and disables some of them based on the variety of the themes among the reviews list items to prevent the filtering to result in an empty list; an alternative strategy would be to initially fetch the reviews list and then, based on the variety of topics, fetch the necessary filter options one-by-one using the themes/{id} endpoint.

Potential next steps and improvements

  • Create a 404 page and handle navigating to an invalid route,
  • Handle the data fetching statuses (loading, error, success) in the UI,
  • Make use of the URL`s query parameters to enable page's data persistence for link sharing purposes,
  • Style the React Select component to follow the design guidelines,
  • Implement Unit and Integration test suites.

chattermill-challenge's People

Contributors

foxoter avatar vitaly-cm avatar

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.