Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 693 Bytes

File metadata and controls

32 lines (20 loc) · 693 Bytes

sort-table

React SPA web page:

  • loads json data into a table
  • sorts data rows by selected field (uses helper function app/utils/sortAlphaNum.js)
  • highlights and displays selected row

Running locally

  • git clone or download this repository
  • cd sort-table or cd sort-table-master
  • npm install
  • run in dev mode: npm run dev
  • run in prod mode: npm run prod

Linting

  • ESLint npm run eslint
  • Sass lint npm run sass-lint

Static typechecking with Flow

  • Stop flow server npm run flow stop
  • Start flow server npm run flow start
  • Run flow npm run flow status

Testing with jest

  • test helper function (app/utils/sortAlphaNum.js): npm run test