Displays a multiplication table of prime numbers for a given size. The finding of prime numbers uses a simple segmented sieve of Eratosthenes.
- Ensure Docker is installed and running.
- Build and run the docker image:
docker-compose up
- Navigate to http://localhost
- Install Node.js v6.9.5+
- Install Yarn
- Install dependencies
yarn install
- Start the application
yarn start
- Navigate to http://localhost:1337
Testing is composed of:
- Mocha as the test runner.
- Chai for assertions.
- SinonJS for spys, stubs and mocks.
- Enzyme for testing React components.
- Istanbul for code coverage reporting.
Testing is triggered by a single npm script: yarn test
.
Once the tests have completed, coverage reports can be found in the coverage/
directory and mocha will also convert the test results into a JUnit style test-results.xml
at the root level.