leo-esaki / react-redux-ramda-calc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Calculator

A calculator built with React, Redux, Ramda and point free functional programming.

Features

  • Point-free functional programming with Ramda.
  • Math expression evaluation based on Math.js.
  • Uses Redux for validating pressed keys and calculating expressions while typing. Default keys for basic arithmetic calculations, but easy to customize the allowed keys (see initialState.js).
  • Theme switching based on Redux, a custom <ThemeManager> component and Radium.
  • Based on react-redux-starter-kit.

Usage

git clone git@github.com:kenyoshida612/react-calculator.git
cd react-calculator
npm install
npm run dev

Go to http://localhost:3000/

Tests

Watch for changes and re-run tests:

npm run test:dev

Run tests once and generate coverage report:

npm run test

About

License:MIT License


Languages

Language:JavaScript 99.3%Language:HTML 0.7%