Git Product home page Git Product logo

reactreduxtablefakertask1's Introduction

Guidelines

Submit the task on GIT.

Code should work on the latest version of Chrome.

Stack: ES6/ES7, React, Redux, Jest, Enzyme

Mock

Creates 400 random properties (with id from 10000 to 10399) (200 with type Home, 200 with type Condo). Each second the price and timestamp of the property is updated. Update of each property is being sent independently within the subscription. To create the subscription in src/App.js:

properties$.subscribe((propertyUpdate) => console.log('propertyUpdate'));

The mock is Rx.js observable. You should not change it or work with it directly by using any operators on the stream. The knowledge of Rx.js is not required, it is used in the test only to generate frequent updates of data.

Tasks to implement

  1. Create the table of all the properties with such columns:
    • ID
    • Address
    • Price
    • Last Update
    • Type
    • Is in favorite

!!The table should be visually updated with the latest data each 2 seconds!!

  1. Provide an ability to sort by each field in both directions (asc and desc)
  2. Add an ability to add a property to favorites by clicking on a heart icon in "Is in favorite" column. The properties, that are added to fav, should always go first in the table (for all sort settings)
  3. Add an input, that searches the property by Address, ID or Type. When a user types in the input - the block with autosuggestion should appear below the input with the list of properties, that match the criteria. The up-to-date price of the property should appear next to it.
  4. If a user clicks enter on the input - the table should be filtered according to the value of the input.

Additional:

  1. Cover the implementation by tests using Jest and Enzyme.
  2. Implement some trottling logic on the input in order to avoid redundant updates.
  3. Provide a decent design to the solution, pay attention to css.

Use the best practises regarding React/Redux applictions in order to achive the best performance and UX in this mini-application.

Run the boilerplate

- npm install
- npm start

reactreduxtablefakertask1's People

Contributors

dmitriyslaym avatar

Watchers

James Cloos avatar Kirill 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.