Giter Site home page Giter Site logo

react-wowcher-test's Introduction

Revenue aggregator application

You are creating an MVP of a revenue aggregator application. It's a React-based web application which displays a list of products of a store in a table that is sorted, filterable and displays total revenue in the filtered list.

Setup

Follow these steps to setup the app:

  1. npm install – install dependencies
  2. npm test – run all tests in watch mode (should fail unless you implement the app)
  3. npm start – serve the app at http://localhost:3000/ (it automatically opens the app in your default browser)

Task

  • Use the fetch API to request 'api/branch{1, 2, 3}.json' and render it inside a table where each row contains two columns: product name and total revenue from sales of the product
  • Load all the branches together, you don't need to switch between the branches
  • Branches may sell the same products, you will need to merge those products together and sum up the total revenue of that product
  • The table should be sorted alphabetically by product name
  • The table can be filtered by product name, the filter should be case insensitive
  • At the bottom of the table the total revenue is shown for all the products that are displayed, i.e. if you filter the table, the total needs to update
  • You should use the provided formatNumber function to display numbers
  • You need to make sure that ALL tests pass before submitting
  • Make sure Search input is inline with the label and working
  • Don't use external NPM libraries, this app only needs to work on the latest Chrome

Helpful notes

  • No need to make branch loading dynamic, you can hardcode the json names
  • No need to display partial data, you can wait for all data to load
  • We love to see a bit of creative flair, feel free to "Wowcherfy" the app
  • Make sure you are happy with the completed solution and it is done to the best of your ability

react-wowcher-test's People

Contributors

tomascoyote avatar

Watchers

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