Building a standard calculator in React
React Calculator
A calculator app built with React.js using React Hooks and Routers. App contains 3 pages with basic styling. Calculator operations, as well as React components, were tested with Jest and React Testing Library
Built With
- React.js
- JavaScript
- Webpack
- HTML/CSS
- Jest (JavaScript Testing Framework)
- Snapshot Testing
Getting Started
To set up a local copy of the project
git clone git@github.com:akshay-narkar/Calculator-React.gitcd Calculator-Reactgit branch testing
If you want to repack the file
- Run
npm installon the terminal to install dependancies - Run
npm run buildto bundle the files in the src folder & product ouput in dist folder - Run
npm run startto check live server
Testing
Calculator operations has been tested in various scenarious with Jest Testing Framework.
Main React components have been tested with Snapshot testing.
- Run
npm run testto run the tests
Author
? Akshay Narkar