GithubHelp home page GithubHelp logo

cashbook's Introduction

Design and develop a Cash Book application using React.js, follow the below instruction to complete the submission.


To begin developing the **` Cash Book`**, an empty state is required and must consist of the screenshot shown below.
![enter image description here][2]

And Today's Balance should be zero with No Entry Found! message at the centre of the screen.
Add two action buttons at the bottom (refer the App.css provided).

Let's now understand about these two buttons

  • IN Button (used to make an entry for cash-in)
  • OUT Button (used to make an entry for cash-out)

![enter image description here][3]
## What are Cash-in and Cash-out?
  • whenever an amount is received we record an entry for it (amount received) as cash-in.
  • whenever we spend any amount on something we record an entry for it (amount spent) as cash-out.

![enter image description here][4]
When creating an entry for cash-in we take `amount`, `note`, `timestamp`, `type` (refer the mock folder for details)
## Perform validation:
  • amount should be of the Integer or Float
  • note should be a String
  • create new entry button should be disabled for invalid values

![enter image description here][5]
Similarly, we do for `cash-out` and perform the required validation as mentioned above.
# **Refer `App.test.js` for testing your submission, please make sure to include `testid`(exactly same as mentioned in the test) of the elements to get maximum score and run you test locally and submit `App.js` file in the below submission form once you are done with the development.**
# Demo Video
<iframe width="560" height="315" src="https://www.youtube.com/embed/HgnXDH8eJVc" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
# Create Entry "/entry" **[Request]**
``` { note: "foobar", amount: 10.00, type: 1, timestamp: "Tue Jan 05 2021 14:36:56 GMT+0530 (India Standard Time)" } ```
**[Response]**
``` { message: 'entry created' } ```
# Get Entries "/entry" **[Response]**
``` [ ... { note: "foobar", amount: 10.00, type: 1, timestamp: "Tue Jan 05 2021 14:36:56 GMT+0530 (India Standard Time)" }, ... ] ```
Test Instruction:
  • You will be given 2 hours to complete the test.
  • Please avoid adding any new dependency to project.
  • Make sure to follow all the instruction properly to get the maximum score.
  • You must have Node, Yarn and Code Editor of your choice install on your system to continue with the test.
  • Use Help Button, for any query related to the problem statement.
  • Once the test is completed, please make sure to submit App.js

All the best!

cashbook's People

Stargazers

Shivam Kumar avatar

Watchers

Shivam Kumar 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.