Git Product home page Git Product logo

fe-interview's Introduction

Cleo Frontend Interview - Bills

Get Started

  1. Fork or clone this repo (a simple create-react-app extended with json-server and some Cleo-specific goodies)
  2. Install dependencies via yarn (or npm)
  3. Run yarn start to start the dev server
  4. Run yarn api in a different terminal to start the json-api server

The Task

  1. Create a Tabs component that allows multiple pages to be switched between.
  2. One tab should show a list of merchants with transactions that have been marked as bills. These can be found at http://localhost:3002/merchants. Merchant's marked as bills, have a flag isBill set to true.
  3. Another tab should show a list of merchants with transactions which are potential bills. These can also be found at http://localhost:3002/merchants. Merchant's that could be potentially bills have a flag isBill set to false.
  4. Under each merchant row for both lists, should be a hidden list of transactions for that merchant. This should show when the merchant row is clicked.
  5. Under the name of each merchant should show a count of the transactions for it
  6. Add an action to the bills tab for each merchant called "remove bill" which updates the relevant merchant's isBill flag to false. You can use a PATCH request to http://localhost:3002/merchants/:id using the id of the merchant to update the resource.
  7. Add an action to the potential bills tab for each merchant called "Add as bill" which updates the relevant merchant's isBill flag to true.
  8. After each action, the lists should reflect the changes.

Notes

  • Please aim to spend 2-3 hours completing this task
  • We'd like to see state management tools being used
  • Tools we use at Cleo include styled-components, Typescript and Redux (with Sagas)
  • Style the components however you see fit. SASS or PostCSS are fine, but we'd prefer CSS in JS
  • We love tests, linted code and great looking UIs
  • The API contains other data, feel free to use this creatively if you have the time
  • Remember to check your project runs before submitting

fe-interview's People

Contributors

hovlev avatar obates avatar wilco3d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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