Skip to content

A React web application for cxroots

Notifications You must be signed in to change notification settings

rparini/cxroots-app

Repository files navigation

Test Coverage Status

A React web application demonstrating the cxroots Python library, using Pyodide to run Python in the browser.

Development

Install nvm to manage node versions. Then install the required node version with:

nvm install
nvm use

Enable yarn with

corepack enable

and then install the packages needed to build the application

yarn install --immutable

You can then start a local server with

yarn start
  • Install pre-commit and then run pre-commit install. The pre-commit scripts can also be run manually with pre-commit run --all-files
  • The project uses prettier to maintain consistent formatting. It is run as part of the pre-commit hook and is recommended to be run on save in the developer's editor.

Testing

Tests are run with Jest and are invoked with

yarn test

Tests are run in CI and a coverage report is uploaded to Coveralls

Acknowledgement

Used https://github.com/xhlulu/react-pyodide-template as an original JS template