This project was scaffolded using nx and is based on React, TypeScript and MUI.
The UI reports player-1-wins
, player-2-wins
, draw
'Outcome' as appropriate, based on the input given (and the rules of "Rock, Paper, Scissors").
Unit tests using Jest and React Testing Library, integration tests via Cypress.
Using latest Node.js LTS v18.x
(e.g. via nvm)
Install dependencies:
npm i
Spin up api
(an Express.js app) and ui
(a React.js app):
npx nx serve api
npx nx serve ui
Open ui
in browser http://localhost:4200/
Change code and see changes in browser.
Run unit tests:
npx nx test api --watch
npx nx test ui --watch
Run Cypress tests:
npx nx e2e ui-e2e