Giter VIP home page Giter VIP logo

coding-challenge's Introduction

LH Ventures Coding Challenge

Your task is to finish the redux mapStateToProps function to a program to help an accountant to get balances from accounting journals.

Getting started

Install modules by running npm install in the command line, then npm run start.

Inputs & Outputs

Journal and Accounts input fields are already parsed and stored in the app's Redux store.

User input has the following form

AAAA BBBB CCC-XX DDD-XX EEE

AAA is the starting account (* means first account of source file), BBB is the ending account(* means last account of source file), CCC-YY is the first period (* means first period of source file), DDD-YY is the last period (* means last period of source file), EEE is output format (values can be HTML or CSV).

Examples of user inputs

1000 5000 MAR-16 JUL-16 HTML

This user request must output all accounts from acounts starting with "1000" to accounts starting with "5000", from period MAR-16 to JUL-16. Output should be formatted as an HTML table.

1000 5000 MAR-16 JUL-16 HTML

2000 * * MAY-16 CSV

This user request must output all accounts from accounts starting with "2000" to last account from source file, from first periof of file to MAY-16. Output should be formatted as CSV.

2000 * * MAY-16 CSV

Challenge

Parsing input fields and storing in Redux has already been implemented; it's up to you to filter the journals and accounts to create the balance data set. This code should go into the selector function at the bottom of the BalanceOutput component. The BalanceOutput component expects balance to be an array of objects with the keys ACCOUNT, DESCRIPTION, DEBIT, CREDIT, and BALANCE.

Post challenge

After you're done, commit your changes, upload to your github and send us a link.

coding-challenge's People

Contributors

cezary avatar ctoppel avatar

Watchers

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